Forum Moderators: phranque

Message Too Old, No Replies

301 Redirect kind of working

I need to redirect all www. pages to no www

         

ghankerson

9:33 pm on Jan 21, 2004 (gmt 0)

10+ Year Member



Edited: Nevermind, I figured out what the problem was. I just needed to add in the beginning:
Options +FollowSymLinks

After searching google and webmasterworld for the last few hours, I decided to ask for help. I have one redirect working perfectly on one of my sites, however it works differently on my other that is hosted by another company. Like many others here, my google results show up in 2 places and I want to redirect all www. results to no www. Here is the rewrite:

RewriteEngine On
rewritecond %{http_host} ^www.*$
RewriteRule (.*) [mywebsite.net...] [R=301,L]

It redirects all individual pages and folders correctly, however when I go to wwWebmasterWorldebsite.net or wwWebmasterWorldebsite.net/ it does not redirect. I tried looking at the Apache book but it's like trying to read hieroglyphics. I'm not too sure why it works on one site and not the other. Guess my host has something configured differently. Any help would be appreciated and thanks in advance!

rogerd

5:45 pm on Jan 23, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Looks like you found your own answer, ghankerson!

ghankerson

6:08 pm on Jan 23, 2004 (gmt 0)

10+ Year Member



Yep! Just started changing random things and tested it and finally it worked. Now I just have to wait and see what happens to my rankings. Oh yah, Frontpage doesn't work after the change but I read that is normal. Oh well, time go back to FTP.