Mike Irving - Macclesfield Web Developer

301 Redirect in IIS

Mike Irving - Macclesfield Web Developer image 1 Mike Irving - Macclesfield Web Developer image 2

News Section - 301 Redirect in IIS

Developer Blog from Mike Irving - 301 Redirect in IIS

31/8/2007 - 301 Redirect in IIS

When completely remaking a website, it is often neccesary to Redirect all requests for old pages to appropriate new pages.

This is for the benefit of both the user, and Search Engines.

A "301" status code should be passed to the browser / search engine when such a redirect is made. In short, a code "301" redirect represents that the page has "Moved Permanently". For search engines this tells them to stop spidering the old page, and look to the new URL.

There is a popular myth amongst the Search Engine Optimisation (SEO) community that this is difficult / impossible to acheive in IIS

This couldnt be further from the truth. 301 redirects can be done programmatically in both ASP and ASP.Net. The best way to redirect old pages on mass is to setup a custom 404 handling page in IIS, written in either ASP or .Net, that redirects pages, with "301" status. Any old pages that come in will be redirected to appropriate new ones, or the home page if you prefer. You can also put routines in here to return status 410 "Gone" should you wish to, and finally if no pages match those you are trying to catch, then return your custom 404 page.

To redirect a whole site, irrespective of filename, you can simply set make a change in IIS that will take you just a few seconds.

Plase do contact me if you want to know more.


View Blog Entries - Page: 1, 2, 3, 4, 5, 6
Previous Blog Entries
20
Aug
2007
New Churchill Web Design
A new corporate website for Churchill China Plc has gone online today. The site is very simple in structure, making use of the basic functions of a Silkmoth Wirenet™ website. It contains a...

Read This Blog Entry
16
Aug
2007
Axis Corporate Solutions
A new website has been launched for the Macclesfield and Hayfield based Accountancy firm Axis Corporate Solutions. The new website is built upon the Silkmoth Wirenet™ CMS System. Their web...

Read This Blog Entry
15
Aug
2007
Image Verification in ASP
Many web designers use Image Verification as a method of preventing Contact Forms from falling victim to SPAM-Bots. What are SPAM-Bots? Put simply, machines that trawl the web looking for websites ...

Read This Blog Entry
View All Blog Entries

Mike Irving (mikeirvingweb) on Twitter
My latest Tweet on Twitter...

Follow Me on Twitter

Bookmark this web page:
© 2010 Mike Irving Web Design Macclesfield