Redirecting (301) to no-www Class B specification in IIS

by Phill 10. February 2009 08:33

Need to redirect your www.yourdomain.com requests to yourdomain.com (without the www)?

no-www.org logo

This quick guide shows how you can do this to the optimal 'no-www' Class B specification on a Windows /IIS server. You will need access to the server's desktop.

1) Launch the 'Application Server' window

2) Create a new website under; IIS > Websites > New > Website

3) Name it 'no-www redirect', click next

4) In the box entitled 'Host header for this website'; enter your website domain with the 'http://www.' (eg www.yourdomain.com). Click next

5) When prompted for the path just select the local drive. This will be overriden later

6) Leave default permissions in place and compete the wizard

7) Select the new website from the 'Application Server' window and select properties from the right-click menu

8) Open the 'Home Directory' tab. Select the 'A redirection to a URL' radio button

9) In the 'Redirect to:' box, enter the full url of the website but without the 'http://www.' (eg http://www.yourdomain.com)

10) Finally, select the check box titled; 'A permanent redirection for this resource'. It is ESSENTIAL that the check boxes marked 'The exact url entered above' and 'A directory below url entered' are NOT CHECKED!

11) Now start your newly created website.

What should happen now?

If you visit 'www.yourdomain.com' in a browser it will redirect to 'yourdomain.com'. If you want to know why this is beneficial &/or want to test its validity visit: http://www.no-www.org

 

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Currently rated 5.0 by 2 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , ,

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered by BlogEngine.NET 1.4.5.0
Theme by Extensive SEO

About the author

Phill Healey: I am a self-employed web & multimedia giraffe from Manchester now based in Greenwich London.

 

My company is called 'Electric Media', and this is my blog. Its all about the wonderful world of web design, life in Manchester, and my random random thoughts and mutterings.

 

I do hope you enjoy!

Tag cloud

RecentComments

Comment RSS

Copyright Disclaimer

Copyright © and Moral Rights for any discussion papers or working papers or articles on this site, images posted on this site and any postings authored on this site are retained by the individual authors and/or other copyright owners.

You may not engage in further distribution of the material, or use the material, for any profit-making activities or any commercial gain.