找回密码
 注册
广告投放 虚位以待【阿里云】2核2G云新老同享 99元/年,续费同价做网站就用糖果主机-sugarhosts.comJtti.com-新加坡服务器,美国服务器,香港服务器
查看: 402|回复: 0

COCADOMAIN/GODADDY空间怎样更改index.html index.php的优先显示顺序

[复制链接]
发表于 2010 年 10 月 2 日 12:45:09 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×

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文件, 文件中添加:
  1. DirectoryIndex index.html index.htm index.php
复制代码
根据你要的顺序调整index.html/index.htm/index.php先后

Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|金光论坛

GMT+8, 2025 年 2 月 3 日 18:03 , Processed in 0.025730 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表