问题
I want to redirect "www.adomain.com" to "www.adomain.com/cms". The cms-part should be masked.
I don't get it to work silently. So "cms" is always part of the url.
I tried this solution: https://stackoverflow.com/a/4475173/1052107, but I always get an Internal Server Error.
回答1:
RewriteEngine on
RewriteBase /
RewriteRule ^(.*)$ /folder/$1
And this should go in the .htaccess file at the root of the domain.
This is pulled off a site I have doing this now, so it should work
来源:https://stackoverflow.com/questions/9739623/htaccess-redirection-to-subfolder-masked