I am hosting several sites in one single cmsms installation using multiple trees.
I have the folowing urls:
"http://www.site1.url/site1/...
"http://www.site2.url/site2/...
"http://www.site2.url/site2/...
i would like to remove the first level of the hierarchy from the url...
Can i do that with url rewriting ?
here is my actual htaccess:
Code: Select all
# for CMS made simple
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteCond %{REQUEST_METHOD} !POST$
RewriteRule ^(.*) %{REQUEST_URI}/ [NE,R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]