
09-21-2006, 02:54 AM
|
 |
SEO
|
|
Join Date: Sep 2006
Location: Bangkok, Thailand
Posts: 848
|
|
Hi there,
I think you are talking about domain redirection out here so that u can direct all your non www traffic to www
I think this will be useful in that case
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST}!^www\.example\.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(([^/]+/)*)index\.html\ HTTP/
RewriteRule index\.html$ http://www.example.com/%1 [R=301,L]
</IfModule>
Replace example with your domain name..
|