raksmart活动促销

分享

写回答

发帖

输入域名直接进入index.php的问题

国外虚拟主机 国外虚拟主机 2812 人阅读 | 6 人回复

发表于 2007-11-6 21:34:51 | 显示全部楼层 |阅读模式

在hg空间里绑定了几个域名,不知道默认的首页是哪个。

比如www.abc.com的域名,绑定后只有输入www.abc.com/index.php或者www.abc.com/index.htm文件才能进入,请问如何设置才能只输入www.abc.com就能直接进入默认的首页文件?

回答|共 6 个

cutecut

发表于 2007-11-10 12:04:20 | 显示全部楼层

怎么没有一个人帮一下忙?

大漠孤狼

发表于 2007-11-10 12:30:13 | 显示全部楼层

本来就是可以的,不知道怎么帮你

cutecut

发表于 2007-11-10 18:49:57 | 显示全部楼层


我把我的操作步骤说一下吧,你看看问题在哪里:
先购买了玉米,把该玉米的name server换成hostgator空间的name server
到空间的cPanel里添加玉米名
上传网站到该空间

看看下面这个玉米吧:
直接点击:http://www.successful-hypnosis.com  不能打开吧?(是不是还需要设置玉米什么的?因为连hostgator的页面都没出现)
点击这个:http://www.successful-hypnosis.com/index.php,这样可以吧?

怎么回事呢?怎么样才能让http://www.successful-hypnosis.com和http://www.successful-hypnosis.com/index.php的效果一样呢?

谢谢啊

大漠孤狼

发表于 2007-11-10 18:54:43 | 显示全部楼层

可能是修改过什么配置文件

cutecut

发表于 2007-11-11 00:55:33 | 显示全部楼层

cpanel里面的文件么?
可能是哪个?

cutecut

发表于 2007-11-12 07:26:24 | 显示全部楼层

原来是这个问题:
"Hello,

The issue was caused by your root .htaccess file it had a rewrite rule that was causing the issue, I have commented that rule out and the http://www.successful-hypnosis.com site seems to be working fine.

If one of your other addon domains needs that rewrite rule you should create another .htaccess file in its folder so it doesnt affect the other addon domains."
您需要登录后才可以回帖 登录 | 注册

本版积分规则