| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Google and 301 redirects on windows server|
| 7:04 pm on Apr 19, 2006 (gmt 0)|
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?
| 9:44 pm on Apr 19, 2006 (gmt 0)|
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
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,
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
© Webmaster World 1996-2013 all rights reserved