raksmart活动促销

分享

写回答

发帖

如何设置JB VPS主页为index.html而不是index.php

国外VPS云主机 国外VPS云主机 2447 人阅读 | 5 人回复

发表于 2008-9-24 21:13:09 | 显示全部楼层 |阅读模式

如何设置JB VPS首页为index.html而不是index.php

我根目录下有index.php和index.php两个文件,每次访问域名时,它自动访问的是index.php

如何设置可以实现,输入域名直接到index.php文件?

回答|共 5 个

jeffreyhhh

发表于 2008-9-27 08:43:35 | 显示全部楼层

你的网站如何,能否演示一下,我也想买个vps

孤独的猫

发表于 2008-9-27 21:21:17 | 显示全部楼层

apache
找到http.conf中
DirectoryIndex index.html index.php
这行
把index.html移到index.php前面就行

lighttpd
index-file.names            = (  "index.html","index.php",)

确保index.html在index.php前面即可

cafeaaa

发表于 2008-9-27 22:56:34 | 显示全部楼层

终于有人回答了,谢谢

bingu

发表于 2008-9-27 23:11:25 | 显示全部楼层

在.htaccess中加上这句
  1. Directory Index index.html index.htm bingu.net.html wordpress.org.html
复制代码
RAKSmart

bingu

发表于 2008-9-27 23:12:07 | 显示全部楼层

是哦,jb默认是lighttp,不支持.htaccess的。
RAKSmart
您需要登录后才可以回帖 登录 | 注册

本版积分规则