Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如,如果我的主页 url 是 "mywebsite.com/index.php",我想index.php访问"mywebsite.com"
"mywebsite.com/index.php"
index.php
"mywebsite.com"
每个网站使用的标准程序是什么?
您必须创建一个.htaccess文件并编写以下内容:
.htaccess
DirectoryIndex index.php
该文件必须在您的文件夹中index.php