raksmart活动促销

分享

写回答

发帖

我的首页为什么不能设置index.php为首页

国外虚拟主机 国外虚拟主机 2095 人阅读 | 10 人回复

发表于 2008-11-29 14:25:08 | 显示全部楼层 |阅读模式

htaccess 文件已经设置了

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

可是等了半天还是不行,哪位知道我是不是设置错了啊...

回答|共 10 个

一路同行

发表于 2008-11-29 14:32:08 | 显示全部楼层

默认就支持index.php 的,你的htaccess放在哪个目录下?

hh77

发表于 2008-11-29 14:51:44 | 显示全部楼层

根目录下,我现在不默认支持index.php,反而是index.html

刚买了独立IP,是不是跟这个有关系,原来也没有改过,换完IP出现了这个问题

一路同行

发表于 2008-11-29 15:02:01 | 显示全部楼层

用独立IP能直接访问你的index.php页面吗? 其他域名或子域名是否可以?你试试

hh77

发表于 2008-11-29 17:54:15 | 显示全部楼层

可以直接访问index.php文件,但是设置不了默认的

一路同行

发表于 2008-11-30 09:11:43 | 显示全部楼层

输入你的域名提示什么?404错误吗?
RAKSmart

OnlyBlue

发表于 2008-12-7 16:10:50 | 显示全部楼层

我的问题类似:

在我的机子上
http://localhost/ezp/
可以正常浏览

但是移植到godaddy服务器上后
http://www.mydomain.com/
出错了:

Not Found
The requested URL /profile/index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


必须这样:
http://www.mydomain.com/index.php
才能正常运行,怎么办呢?

ffnn

发表于 2008-12-7 16:39:37 | 显示全部楼层

GD好像有默认的welcme.html首页吧,删除它

sunix

发表于 2008-12-7 16:52:30 | 显示全部楼层

GD?

ffnn

发表于 2008-12-7 17:49:54 | 显示全部楼层

你不是说你在GD用不起吗
您需要登录后才可以回帖 登录 | 注册

本版积分规则