I have implemented URL routing in ASP.NET 4.0 using following route.
routes.MapPageRoute(
"NewsDetails", // Route name
"news/{i}/{*n}", // Route URL
"~/newsdetails.aspx" // Web page to handle route
);
which gives me url like
http://www.mysie.com/news/1/this-is-test-news
and this is working in my localhost fine.
But when I uploaded it on the server it gives ...
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.
If I try http://www.mysie.com/news/1/this-is-test-news.aspx then it displays page.
Has anyone have same problem?
How can i set URL http://www.mysie.com/news/1/this-is-test-news to work on windows server 2008 ?