.htaccess redirection to subfolder (masked)

前端 未结 1 1224
猫巷女王i
猫巷女王i 2020-12-11 08:51

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

相关标签:
1条回答
  • 2020-12-11 09:37
    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

    0 讨论(0)
提交回复
热议问题