Free templates
Menu Search Free templates

Extensionless 404 URL rewriting (C#, VB and ASP.NET) | Free code

Here you can download free code (C# and VB) for URL rewriting of SEO-friendly links without extensions using 404 handling in the Global.asax file without having to make any changes in IIS 6 or IIS 7.

When IIS 7 is used as a web server can you create SEO-friendly links without file extensions that can be rewritten to internal URLs with parameters with rewrite rules in the "Web.config" file. Anyone who uses a web host that not is running IIS 7 can, in a rather simple way, create rewrite rules for SEO-friendly links without extensions with 404 handling in the Global.asax file.

URL rewriting with 404 handling in the Global.asax file works in such a way that you create SEO-friendly links to content on your website according to your choice. Once an SEO-friendly URL are typed in a web browser from a link or from manual input will a 404 error be raised and the URL for this error will be picked up in the "BeginRequest" method in the Global.asax file. The 404 URL will be split into smaller parts and from the information contained in these parts is it possible to rewrite the address to an internal URL with parameters.

In this template with free code (C# and VB) for URL rewrite of SEO-friendly links without extensions with 404 handling in the Global.asax file are there 4 web forms and one SQL database where we have created user-friendly links for categories, pages and individual articles. We have also handled 301 redirects in the code for the 404-page and can apply URL rewriting in IIS 6 and IIS 7.

We have used Microsoft Visual Web Developer 2005 (and 2010) Express to create the website with URL rewrite and 301 redirect. You can test this template on your local computer by copying the contents to "C:\inetpub\wwwroot" and then enter "localhost" in your browser to an IIS 6 server using the "Eeb.config" file or on a IIS 7 server by using the "IIS7-Web.config" file as the "Web.config" file. The "Web.config" file that is used in IIS 6 can easily be converted to a "Web.config" file for IIS 7 and ASP.NET v4.0 by opening the website in Microsoft Visual Web Developer 2010 Express.
Updated: 01/01/2015 | Created by All-templates.biz

Download Extensionless 404 URL rewriting (C#, VB and ASP.NET) | Free code ยป

Tags: web code seo seo optimizing