COCADOMAIN/GODADDY空间怎样更改index.html index.php的优先显示顺序
COCADOMAIN/GODADDY 空间的默认首页文件显示顺序:
Default File Names and Order of Precedence - Windows
This is the order of precedence for the default files on your Windows® hosting account:
default.asp
default.html
default.htm
default.aspx
default.php
default.shtml
default.shtm
index.html
index.htm
index.asp
index.php
index.shtml
index.shtm
home.html
home.htm
home.shtml
home.shtm
welcome.html
welcome.asp
NOTE: If ColdFusion is enabled on your Windows hosting account, index.cfm is given top default file precedence.
Default File Names and Order of Precedence - Linux
This is the order of precedence for the default files on your Linux Standard account:
default.html
default.htm
index.php
index.shtml
index.html
index.htm
home.html
home.htm
index.php5
NOTE: If you have ColdFusion enabled, index.cfm and default.cfm take priority 10 and 11, respectively. If you have Java enabled, index.jsp takes priority 10.
welcome.html
welcome.htm
假设要更改顺序, 需要在根目录建立.htaccess文件, 文件中添加:DirectoryIndex index.html index.htm index.php根据你要的顺序调整index.html/index.htm/index.php先后
页:
[1]