Enabling 301 redirects on IIS 7 on Windows server 2008#

I was stumped the other day as to why i could not get a 301 redirect in from site.com to www.site.com on IIS 7.  After much looking around I found out that you need to enable this feature in the server manager. 

image

Then you need to go back to the IIS node that you want to enable 301 redirect for:

 

image

And then set the values for your redirect:

image

If you notice what is also cool is that it will redirect addresses relative to the domain and not just to the root (i.e site.com/oldfile.htm will redirect to www.site.com/oldfile.htm

Hope this helps someone, cause it was not very intuitive for me to find out how to do it since the feature was not installed by default.

Thursday, February 05, 2009 10:37:27 AM UTC #    Comments [627]  |  Trackback

 

 

All content © 2013, Jim Zimmerman
Book
New Book
Links to me
On this page
Sponsors
Calendar
<May 2013>
SunMonTueWedThuFriSat
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678
Archives
Tags
Blogroll OPML
Technorati
Favorite Links
Disclaimer

Powered by: newtelligence dasBlog 1.9.6264.0

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Send mail to the author(s) E-mail