现在的位置: 首页 > Godaddy使用说明 > 正文

Godaddy虚拟主机如何设置首页优先级

2011年10月07日 使用说明 ⁄ 共 769字 ⁄ 字号 Godaddy虚拟主机如何设置首页优先级已关闭评论 ⁄ 阅读 5,548 views 次

Godaddy虚拟主机分为Linux系统和Windwos系统,也正是因为这样,Godaddy的虚拟主机设置首页优先级分为Linux系统和Windows系统。

1.GoDaddy windows主机首页优先级顺序

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

如果用了ColdFusion,则如下文件有更高的优先级

default.cfm
default.cfml
index.cfm
index.cfml
home.cfm
home.cfml
welcome.cfm
welcome.cfml

windows的可以考虑使用高优先级的首页转向到你需的首页文件上,意思就是说可以将首页文件名改为更高的优先级首页文件名。

 

2. GoDaddy Linux主机的首页顺序:

default.html
default.htm
index.php
index.shtml
index.html
index.htm
home.html
home.htm
index.php5

    注意:如果你激活了ColdFusion,index.cfm和default.cfm的优先级为10和11. 如果激活了JSP, index.jsp优先级为10.

welcome.html
welcome.htm

linux主机用.htaccess可设置其它文件为首页, 代码如下:

DirectoryIndex index.html index.php index.cgi index.pl

抱歉!评论已关闭.