3
我想改变我的网站的主目录的子目录中的一个工地内,以便例如更改基本目录
http://name_of_site/first_directory/second_directory/index.php
将被改写为
http://name_of_site/index.php
我想改变我的网站的主目录的子目录中的一个工地内,以便例如更改基本目录
http://name_of_site/first_directory/second_directory/index.php
将被改写为
http://name_of_site/index.php
基本上你需要什么是改变你的DocumentRoot
分别为(阿帕奇)或root
(Nginx的)
DocumentRoot /path/to/first_directory/second_directory;
root /path/to/first_directory/second_directory;
此外,也有很多相似的问题
什么是使用它的代码在那里?它取决于你如何使用它...你的框架是什么等...? – Random