Welcome to WebmasterWorld Guest from 54.145.44.134

Message Too Old, No Replies

Google and 301 redirects on windows server

Impossible?

     

RoadTrips

7:04 pm on Apr 19, 2006 (gmt 0)

10+ Year Member



I was lucky enough to have been told by google that my site's problem may be due to not redirecting my [mysite.com...] to [mysite.com...] - they both have equal pr (6).

So, I thought I better redirect http to [www....]

Here's the catch, I have an entirely html site on a windows server. My isp directed me on how to make an index.asp page that would redirect to www.mysite.com/index.html...

Unfortunately, I dont think this does the job, because it doesnt redirect other pages, like mysite.com/folder/1.html

Does anybody have a good way to redirect ALL pages to the www version of the site with a windows server? Or should I find an ISP that can host my site in linux?

tedster

9:44 pm on Apr 19, 2006 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



A domain wide 301 redirect on a Windows IIS server is most definitely possible -- but it requires administrator privileges to the server and you may or may not have a cooperative ISP.

Here's a step-by-step:

Domain Level
"non-www" to "with-www"
Permanent 301 redirect in IIS

1. After the www.example.com website is set up, now set up
example.com (without the www) as a website in Internet
Services Manager.

2. Select the example.com web site in Internet Services
manager and enter the properties.

3. In the Home Directory tab, change the option button "When
connecting to this resource the content should come from" to
"A redirection to a URL".

4. Specify the URL as http://www.example.com

5. Check the checkbox that says "A permanent redirection for
this resource." WARNING: If you skip this last step, you will
have a 302 redirect which is definitely NOT what you want.

Always verify your http headers after any changes like this, just
to be sure,

 

Featured Threads

Hot Threads This Week

Hot Threads This Month