- Code: Select all
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^vmancentral\.com [NC]
RewriteRule (.*) http://www\.vmancentral\.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} www\.vmancentral\.com|vmancentral\.com [NC]
RewriteCond %{DOCUMENT_ROOT}/%2%{REQUEST_URI}/ -d
RewriteRule [^/]$ %{REQUEST_URI}/ [R=301,L]
RewriteCond %{HTTP_HOST} www\.vmancentral\.com|vmancentral\.com [NC]
RewriteRule (.*) virtualhosts/vmancentral/$1 [NC,L]
Everything works the way I want; the www. is being forced, it is pointing to the right folder.
When I go to http://www.vmancentral.com/addons it goes to http://www.vmancentral.com/addons/ like it is supposed to
But when I go to http://www.vmancentral.com/addons/forum it goes to http://www.vmancentral.com/virtualhosts ... ons/forum/
I want it to go to http://www.vmancentral.com/addons/forum/
Please help