title: How to handle 'The controller for path '/index' was not found or does not implement IController' in asp.net mvc?
body: <p>I am working on Asp.net mvc3 application.For exception handling i using following code in global.asax</p>
  
  <pre><code>    protected void Application_Error(object sender, EventArgs e)
      {
          Exception exception = Server.GetLastError();
          Response.Clear();
          HttpException httpException = exception as HttpException;
          Server.ClearError();
          Response.Redirect("/Secure/Error", false);
      }
  </code></pre>
  
  <p>if any exception occur it will redirect to Error page.I want to some exeception should not redirect to Error page.</p>
  
  <p>Like if any user enter following url</p>
  
  <blockquote>
    <p>www.example.com/index</p>
  </blockquote>
  
  <p>there is no controller of '<strong>index</strong>' name it will be throw exception</p>
  
  <blockquote>
    <p>The controller for path '/index' was not found or does not implement
    IController</p>
  </blockquote>
  
  <p>I want this when this exeception occur it should redirect to <strong>www.example.com</strong></p>
  
  <p>How can i do this?</p>
  
  <p>There are some other keyword like <strong>index..</strong> that should be redirect to main url of website</p>