Forum Moderators: phranque
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST}!^www\.mysite\.com
rewriterule (.*) [mysite.com...] [R=permanent,L]
So mysite.com will redirect to www.mysite.com.
I would like to add an additional feature in my .htaccess (or in another .htaccess) so: www.mysite.com/directory/ (and www.mysite.com/directory/index.php) will have a permanent redirect to www.mysite.com .
How should I do this?
Shoud I add something to the current .htaccess? Or should I place a new .htaccess in the /www/directory/?
And what should I put in it?
Thanks in advance,
Brakkar