Page is a not externally linkable
deezin - 11:41 pm on Jan 9, 2008 (gmt 0)
example.com now goes to www.example.com I used the following to do this: Options +Indexes RewriteBase / RewriteCond %{THE_REQUEST} ^.*\/index\.html?
Thanks for your help.This is the redirect I did - basically:
example.com/index.html now goes to www.example.com
www.example.com/index.html now goes to www.example.com
example.com/directory/ now goes to www.example.com/directory/
example.com/anyfile.html now goes to www.example.com/anyfile.html
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com
RewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L]
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_URI}!(.*)/$
RewriteRule ^(.*)$ http://www.example.com/$1/ [L,R=301]
RewriteRule ^(.*)index\.html?$ http://www.example.com/$1 [R=301,L]