I have a website build with Evo installed in the root folder, now I have placed all the files in a sub folder because of a new hosting environment.
I have now in the root folder a .htacces with the following inside:
RewriteCond %{HTTP_HOST} ^www.website.nl$
RewriteCond %{REQUEST_URI} !^/subfolder/
RewriteRule (.*) /subfolder/$1 [last]
RewriteCond %{HTTP_HOST} ^website.nl$
RewriteCond %{REQUEST_URI} !^/subfolder/
RewriteRule (.*) /subfolder/$1 [last]
and in the subfolder (with the modx installation) I have a .htaccess with the following inside:
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.website\.nl [NC]
RewriteRule (.*)
http://www.website.nl/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
If I go to www.website.nl I get in the url the subfolder
www.website.nl/subfolder
www.website.nl/subfolder/somepage
but I would like it to have it without the subfolder in the url like
www.website.nl/
www.website.nl/somepage
what must I change to get this working without the subfolder in the urls?
Thanks!