Configuration 更改基本目录
我想将我的网站的主目录更改为网站中的一个子目录,例如Configuration 更改基本目录,configuration,webserver,Configuration,Webserver,我想将我的网站的主目录更改为网站中的一个子目录,例如 http://name_of_site/first_directory/second_directory/index.php 将被改写为 http://name_of_site/index.php 基本上,您需要分别更改DocumentRoot(Apache)或root(Nginx) DocumentRoot /path/to/first_directory/second_directory; root /path/to/first_di
http://name_of_site/first_directory/second_directory/index.php
将被改写为
http://name_of_site/index.php
基本上,您需要分别更改
DocumentRoot
(Apache)或root
(Nginx)
DocumentRoot /path/to/first_directory/second_directory;
root /path/to/first_directory/second_directory;
此外,还有很多类似的问题