raksmart活动促销

分享

写回答

发帖

[提问] 关于htm和html的问题

HostMonster HostMonster 2929 人阅读 | 4 人回复

发表于 2008-3-18 10:16:56 | 显示全部楼层 |阅读模式

我的站是hostmonster
我上传了index.html后,输入www.xxx.com打不开,但我输入www.xxx.com/index.html能识别
然后我重命名成index.htm后就识别了
我没有改动过.htaccess文件
急,谢谢

回答|共 4 个

bingu

发表于 2008-3-18 10:26:41 | 显示全部楼层

可能是他们没有把index.html加入默认index吧
RAKSmart

NSPY

发表于 2008-3-18 10:27:44 | 显示全部楼层

修改一下索引文件,把index.html加进去

bingu

发表于 2008-3-18 10:36:08 | 显示全部楼层

修改.htaccess也是可以的

yusen1900

发表于 2008-3-19 10:58:39 | 显示全部楼层

我的.htaccess内容如下
# www.host114.org
# .htaccess main domain to subfolder redirect
# Copy and paste the following code into the .htaccess file
# in the public_html folder of your hosting account
# make the changes to the file according to the instructions.

RewriteEngine on
# Change yourdomain.com to be your main domain.

RewriteCond %{HTTP_HOST} ^(www.)?1900bl.com$

# Change ’subfolder’ to be the folder you will use for your main domain.

RewriteCond %{REQUEST_URI} !^/1900/

# Don’t change this line.

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

# Change ’subfolder’ to be the folder you will use for your main domain.

RewriteRule ^(.*)$ /1900/$1

# Change yourdomain.com to be your main domain again.

# Change ’subfolder’ to be the folder you will use for your main domain

# followed by / then the main file for your site, index.php, index.htm, index.html, etc.

RewriteCond %{HTTP_HOST} ^(www.)?1900bl.com$

RewriteRule ^(/)?$ 1900/index.htm [L]

好像没什么问题吧?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

HostMonster讨论

HostMonster
优惠码:优惠链接
介绍:HostMonster美国主机商成立于1996年,总部位于犹他州普罗沃,提供主机托管服务,在业内有比较有实力,而且口碑也不错。HostMonster美国主机性价比较高,而且基本不会额外收取费用,其无限型方案支持无限磁盘空间,无限带宽和电子邮件帐户,提供免费域名1个。
查看更多

yusen1900

发表主题