1

Topic: Use 301 redirect in VLD

The redirect check tool looks at a number of different URLs for your homepage, and reports back on the response code given by each. To be completely safe, a 200 response should only be returned by one page. Other pages should return a 404 or 301. Anything else could be a potential duplicate content problem.

If you want to redirect the non www to www you can use:

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.yoursite\.com
RewriteRule (.*) http://www.yoursite.com/$1 [R=301,L]


I have been using this in my site for a while is great for SEO purpose.

Ps.Change your site with your domain and you can use this tool to check out the redirect.
http://www.ragepank.com/redirect-check/

Last edited by reklamat (2009-09-24 20:35:20)

2

Re: Use 301 redirect in VLD

I actually need to redirect the non www to www for my site.  How do I go about doing this?  You've given the code below but where and how do I implement it?

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.yoursite\.com
RewriteRule (.*) http://www.yoursite.com/$1 [R=301,L]

Thanks

3

Re: Use 301 redirect in VLD

you add that code in the .htaccess file

4

Re: Use 301 redirect in VLD

Do we have to create one or is there one already there?  I tried to look for it in my File Manager but couldn't find it.

5

Re: Use 301 redirect in VLD

try using some FTP program,
cause its a dot file and file managers might not show it, if you have Linux hosting it should be in the main directory where your vld instalation is
something like: /public_html/

6

Re: Use 301 redirect in VLD

I think your right about using an ftp program.  My computer is down at the moment so I was using a friends computer that doesn't have ftp.  I will give it a shot as soon as get a chance.  Thank you very much for your help.

7

Re: Use 301 redirect in VLD

Use this code to redirect www to non www. Replace the url with your url.


RewriteEngine On
rewritecond %{http_host} ^www.site.com
rewriteRule ^(.*) http://site.com/$1 [R=301,L]

8

Re: Use 301 redirect in VLD

I actually got it working yesterday with your help.  I downloaded a free ftp program on my friends computer and sure enough I found the .htaccess file. Thanks so much for your time and assistance!