.htaccess subfolder redirect (masked)

I want to redirect "www.adomain.com" to "www.adomain.com/cms". The cms component must be masked.

I cannot get it to work silently. Therefore "cms" is always part of the URL.

I have tried this solution: https://stackoverflow.com/a/889242/ , but I always get an internal server error.


source to share

1 answer

RewriteEngine on
RewriteBase /
RewriteRule ^(.*)$ /folder/$1


And it should be in the .htaccess file at the root of the domain.

This is pulled from the site I am doing now, so it should work



All Articles