Changing the root folder via .htaccess

后端 未结 4 1024
庸人自扰
庸人自扰 2020-12-01 16:41

I\'ve got a shared hosting account associated with a domain name and the root folder (correct me if that\'s the wrong term) is set to / so that all files on the

4条回答
  •  佛祖请我去吃肉
    2020-12-01 17:19

    The DocumentRoot directive can't be set in a .htaccess file, only in the server config. As you most likely don't have the privileges to modify the server settings your only solution is to use some rewrite magic as clmarquart already mentioned.

提交回复
热议问题