Fight 404 errors with ASP.NET Routing
2/12/2009
This article describes a way to use ASP.NET Routing to avoid 404 Not Found errors when changing folder structure or folder names in a web site
Having a web site means spending some time and efforts promoting the site on the Internet, making sure search engines indexed all the pages, trying to get exposure through blogs or discussion boards.
And then you get new idea and really need to restructure your site – change some folder names, move some pages, etc
What will happen with all those third-party links to your site you were so proud of? Do you want to lose them?
With arrival of .NET Framework 3.5 SP1 we got an elegant way of solving this problem – ASP.NET Routing.The idea is to add special "Routs" to the site having single goal of processing requests to pages which are no longer present on the site..
Similar articles
SweClockers Forum - Alla Forum
ASP.NET routing
Håller på med ett litet projekt och allt fungerar finfint, förutom en liten sak... Jag kör .NET 4.0, webforms och använder routing för att hantera...
DotNetShoutout - Latest published stories
Routing in ASP.NET 4.0 vs Routing in ASP.Net 3.5
ASP.NET Routing allows us to define routing rules, which map a route pattern – such as Categories/CategoryName – to a class that handles the request. These routing rules are defined when the applicati...
ASP.NET Weblogs
ASP.NET, HTTP 404 and SEO
The other day our SEO Manager told me that he is not happy about the way ASP.NET application return HTTP response codes for Page Not Found (404) situation. I've started research and found in...
ASP.NET Weblogs
ASP.NET MVC JavaScript Routing
Have you ever done this sort of thing in your ASP.NET MVC view? The weird thing about this isn’t the alert function, it’s the code block containing the Url formation using the ASP.NET MVC UrlH...
DotNetShoutout - Latest published stories
ASP.NET 4.0 Routing Tutorial
It is a common mis-perception that Routing is exclusive to MVC, with .NET 3.5 SP1 and above Routing can be also used with ASP.NET Web Forms. In ASP.NET 4.0, Routing is fully integrated and so straigh...