Rewrite rule

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
fastfingertips
Forum Contributor
Posts: 242
Joined: Sun Dec 28, 2003 1:40 am
Contact:

Rewrite rule

Post by fastfingertips »

Helloi would like to rewrite all requests from http://www.mydomain.com to http://www.mydomain.com/content/ and i was thinking to:

Code: Select all

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(\.|/$)
RewriteRule (.+) $1/ [R=301,L]
RewriteRule ^(.*)/$  /content/$1 [L]
But is not performing me the redirect cu content folder, any idea?
Post Reply