Rewrite rule
Posted: Tue May 16, 2006 3:01 am
Helloi would like to rewrite all requests from http://www.mydomain.com to http://www.mydomain.com/content/ and i was thinking to:
But is not performing me the redirect cu content folder, any idea?
Code: Select all
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(\.|/$)
RewriteRule (.+) $1/ [R=301,L]
RewriteRule ^(.*)/$ /content/$1 [L]