homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

301 redirect from non-www to www on IIS

 10:26 am on Aug 3, 2007 (gmt 0)

Hi all,

Sorry for if this question sounds a little amateur but I am having problems redirecting http://example.com to http://www.example.com.

I know I have to create 2 websites under IIS manager, one is the non-www version and the other is the www version. but how do i create these. Also how can i redirect the non-www to the www.

Thanks in advance



 4:50 pm on Mar 11, 2008 (gmt 0)

Under your parent domain in IIS, create another website with example.com as the host name and then right click on it> select properties> Select Directory> A redirection to a URL> enter http://www.example.com$S$Q> Select "Exact URL">Select "A permanent redirection"> click ok

You're done!

Global Options:
 top home search open messages active posts  

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved