301 - Redirect - How To?

I am Nick

New member
Joined
Oct 10, 2004
Messages
2
Location
Bangkok, Thailand
I might be penalized from Google for duplicated content. All my webpages are indexed in duplicate by G, ie. http://index.html and http://www.index.html. The suggestions given to me is to do a 301 redirect for the one without "www" to the one with it. The Google should sooner or later pick it up... I have been told...

The webpage concerned is www.plushtoys4you.com

I did not find this 301 page among the common error pages, any suggestions in how to do?

Nick - :confused:
 
Hi there,

edit the httpd.conf that has to do with your domain: normally /usr/local/directadmin/data/users/<username>/httpd.conf

(make a copy of this first before you start editing)

<VirtualHost plushtoys4you.com>
Redirect / http://www.plustoys4you.com/
CustomLog logs/redir "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
</VirtualHost>

you may have to take out the serveralias for the domain

look for the line:

ServerAlias www.plushtoys4you.com plushtoys4you.com

and remove plushtoys4you.com and leave the www.plushtoys4you.com

that should do it, and if it doesn't work restore it from your the copy you just made.

van
 
Back
Top