PDA

View Full Version : Redirect Non www to www using htaccess 301 redirect Search Engine Friendly



AP admin
07-09-2010, 12:47 AM
Just Place this simple code



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

Seanlopez
07-11-2010, 04:59 AM
I am Normally Using this one


<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]
</IfModule>