title: ASP.NET 4.0 URL Routing HTTP Error 404.0 - Not Found
body: <p>I have implemented URL routing in ASP.NET 4.0 using following route.</p>
  
  <pre><code>routes.MapPageRoute(
     "NewsDetails",               // Route name
     "news/{i}/{*n}",  // Route URL
     "~/newsdetails.aspx"      // Web page to handle route
      );
  </code></pre>
  
  <p>which gives me url like </p>
  
  <pre><code>http://www.mysie.com/news/1/this-is-test-news
  </code></pre>
  
  <p>and this is working in my localhost fine. </p>
  
  <p>But when I uploaded it on the server it gives ...</p>
  
  <pre><code>Server Error
  
  404 - File or directory not found.
  The resource you are looking for might have been removed, had its name changed, 
  or is temporarily unavailable.
  </code></pre>
  
  <p>If I try <a href="http://www.mysie.com/news/1/this-is-test-news.aspx" rel="noreferrer">http://www.mysie.com/news/1/this-is-test-news.aspx</a> then it displays page.</p>
  
  <p>Has anyone have same problem?</p>
  
  <p>How can i set URL 
  <a href="http://www.mysie.com/news/1/this-is-test-news" rel="noreferrer">http://www.mysie.com/news/1/this-is-test-news</a>  to work on windows server 2008 ?</p>