Post Reply  Post Thread 

SEO friendly 301 redirect
Author Message
Nameslot
Administrator

Administrators

Posts: 1,532
Group: Administrators
   
Cash: 500.50 Donate
SEO friendly 301 redirect

Sometimes there are questions that some people want to show their site only in www. version not without the www.

You can use the code below in your .htaccess file and it will redirect to www. version site.

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



Nameslot.com | Do you have a question? shoot me a PM.
06-25-2007 11:50 PM
Send the author an email Send the author a private message Visit authors website Find all posts by this author Quote this message in a reply

Advertisements

This is an ad revenue sharing forum
harrysmith
Junior Member



Posts: 25
Group: Registered
   
Cash: 0.00 Donate
RE: SEO friendly 301 redirect

Yeah, 301 redirect are SEO friendly...
But while implementing 301 redirects you should be very careful as if anything gets wrong your site may get out of search results :gasp:
You can find an article on 301 redirect on our blog.


Dedicated Server
VPS Hosting
06-28-2007 06:37 PM
Send the author a private message Find all posts by this author Quote this message in a reply

Post Reply  Post Thread 


View a Printable Version | Send this Thread to a Friend | Subscribe to this Thread | Add Thread to Favorites
Rate This Thread:
Forum Jump: