.htaccess redirection to subfolder (masked)

2019-01-20 01:14发布

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条回答
倾城 Initia
2楼-- · 2019-01-20 01:41
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

查看更多
登录 后发表回答