raksmart活动促销

分享

写回答

发帖

防盗链功能无法正常工作

HostMonster HostMonster 2074 人阅读 | 1 人回复

发表于 2007-11-12 23:23:10 | 显示全部楼层 |阅读模式

hotlink protection 设置好后,提示 There was an error while enabling hotlink protection.
查看详情如下:Apache detected an error in the Rewrite config.
Syntax error on line 6 of /home/chemica1/public_html/.htaccess.L2j274cU6pje9dBPpMn1vWxOGTDQCak3:
RewriteBase: only valid in per-directory config files
Please try again. Apache detected an error in the Rewrite config.
Syntax error on line 7 of /home/chemica1/public_html/.htaccess.4jyon9ZoLwngf2MfMMW7iLaxqehBZv9d:
RewriteBase: only valid in per-directory config files
Please try again.


打开public_html下的.htaccess内容如下
RewriteEngine on

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://chemical-product.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://chemical-product.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://nbpermanentmagnets.chemical-product.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://nbpermanentmagnets.chemical-product.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.chemical-product.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.chemical-product.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.nbpermanentmagnets.chemical-product.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.nbpermanentmagnets.chemical-product.com$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

请问是什么原因??
防盗链虽然打开了,但是无法正常工作,请问应该怎么解决??谢谢

回答|共 1 个

大漠孤狼

发表于 2007-11-12 23:32:25 | 显示全部楼层

联系hostmonster问一下吧,不清楚什么原因
您需要登录后才可以回帖 登录 | 注册

本版积分规则

HostMonster讨论

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

blew

发表主题