如何设置JB VPS主页为index.html而不是index.php
|
|
如何设置JB VPS首页为index.html而不是index.php
我根目录下有index.php和index.php两个文件,每次访问域名时,它自动访问的是index.php
如何设置可以实现,输入域名直接到index.php文件? |
|
|
|
|
|
|
|
|
|
|
jeffreyhhh
发表于 2008-9-27 08:43:35
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
孤独的猫
发表于 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中加上这句- Directory Index index.html index.htm bingu.net.html wordpress.org.html
复制代码 |
|
|
|
|
|
|
|
|
|
|
bingu
发表于 2008-9-27 23:12:07
|
显示全部楼层
|
是哦,jb默认是lighttp,不支持.htaccess的。 |
|
|
|
|
|
|
|
|