.htaccess redirection to subfolder (masked)

自闭症网瘾萝莉.ら 提交于 2019-11-27 07:16:11

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!