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

Microsoft IIS Web Server and ASP.NET Forum

Redirect 301 using ISS but not work perfect

Msg#: 4343912 posted 7:39 am on Jul 26, 2011 (gmt 0)

I want to redirect 301 all url on my website from non-www to www
But when i redirect on ISS then go to url www it say page not found
Pls tell me details
Thanks in advance
Sorry for i speak English not well



WebmasterWorld Senior Member dstiles us a WebmasterWorld Top Contributor of All Time 5+ Year Member

Msg#: 4343912 posted 8:32 pm on Jul 26, 2011 (gmt 0)

You must set up two IIS records, one for www and one for non-www.

Set up the www one as usual (for example, point Home Directory to the web site root folder (usually public_html) and select the directory mode "A directory located on this computer". Ensure the Local Path is set to Read.

For the non-WWW record select "A redirection to a URL" and enter the full www url into the Redirect To field (eg http://www.example.com - no trailing /). Select The Client Will Be Sent To: "A permament redirection for this resource".

I do not know if this still applies, but in earlier versions of IIS it was necessary to set the non-www record's folder to the web site root directory before selecting the redirect mode, otherwise IIS sometimes complained - not seriously but annoyingly.

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