raksmart活动促销

分享

写回答

发帖

求助BL,URL重定向问题 ?

BlueHost BlueHost 8739 人阅读 | 10 人回复

发表于 2010-3-21 16:09:30 | 显示全部楼层 |阅读模式

一共两个关于 .htaccess的问题

1.配置HotLink 保护, Url 到重新定向到:(设置到一个404页面)

点击提交后 报错!如下

Apache detected an error in the Rewrite config.
Syntax error on line 12 of /home1/Username(用户名)/public_html/.htaccess.eNIpfC8klMzsz4Bx5ie0h4puEX5jV6Ny:
RewriteRule: bad flag delimiters
Please try again.

2.域名重定向  设置一个 abc.com/Index.html  定向到 abc.com  提交后 报错

Apache detected an error in the Rewrite config.
Syntax error on line 13 of /home1/Username(用户名)/public_html/abc目录名/.htaccess.V8asb1AiIcyLC28YRcYOKqS24bPEmYKL:
RewriteRule: bad flag delimiters
Please try again.


这是什么错误,.htaccess ?   有什么解决方法   谢谢!

回答|共 10 个

一路同行

发表于 2010-3-22 09:42:02 | 显示全部楼层

htaccess文件里还有什么规则内容

ffnn

发表于 2010-3-22 12:00:49 | 显示全部楼层

你最好把你做的重定向规则发上来看看,才知道写对写错没得。

winzeng

发表于 2010-3-23 11:21:09 | 显示全部楼层

HotLink 保护
There was an error while enabling hotlink protection. 显示详情
  1. Apache detected an error in the Rewrite config.
  2. httpd: Syntax error on line 21 of /home1/bjabc/public_html/.htaccess.oW7P3zbJqleXByTiZIyCPFkJ11BwWtNr: Expected  but saw RewriteCon>
  3. Please try again.
复制代码
htaccess 文件代码
  1. RewriteEngine on

  2. RewriteCond %{HTTP_REFERER} !^$
  3. RewriteCond %{HTTP_REFERER} !^http://010abc.bjabc.com .net/.*$      [NC]
  4. RewriteCond %{HTTP_REFERER} !^http://010abc.bjabc.com .net$      [NC]
  5. RewriteCond %{HTTP_REFERER} !^http://bjabc.com .bjabc.com .net/.*$      [NC]
  6. RewriteCond %{HTTP_REFERER} !^http://bjabc.com .bjabc.com .net$      [NC]
  7. RewriteCond %{HTTP_REFERER} !^http://bjabc.com .com/.*$      [NC]
  8. RewriteCond %{HTTP_REFERER} !^http://bjabc.com .com$      [NC]
  9. RewriteCond %{HTTP_REFERER} !^http://bjabc.com .net/.*$      [NC]
  10. RewriteCond %{HTTP_REFERER} !^http://bjabc.com .net$      [NC]
  11. RewriteCond %{HTTP_REFERER} !^http://cc.bjabc.com .com/.*$      [NC]
  12. RewriteCond %{HTTP_REFERER} !^http://cc.bjabc.com .com$      [NC]
  13. RewriteCond %{HTTP_REFERER} !^http://ccabc.com .bjabc.com .net/.*$      [NC]
  14. RewriteCond %{HTTP_REFERER} !^http://ccabc.com .bjabc.com .net$      [NC]
  15. RewriteCond %{HTTP_REFERER} !^http://cd.bjabc.com .com/.*$      [NC]
  16. RewriteCond %{HTTP_REFERER} !^http://cd.bjabc.com .com$      [NC]
  17. RewriteCond %{HTTP_REFERER} !^http://cdabc.com .bjabc.com .net/.*$      [NC]
  18. RewriteCond %{HTTP_REFERER} !^http://cdabc.com .bjabc.com .net$      [NC]
  19. RewriteCond %{HTTP_REFERER} !^http://cq.bjabc.com .com/.*$      [NC]
  20. RewriteCond %{HTTP_REFERER} !^http://cq.bjabc.com .com$      [NC]
  21. RewriteCond %{HTTP_REFERER} !^http://cqabc.com .bjabc.com .net/.*$      [NC]
  22. RewriteCond %{HTTP_REFERER} !^http://cqabc.com .bjabc.com .net$      [NC]
  23. RewriteCond %{HTTP_REFERER} !^http://mail.bjabc.com .net/.*$      [NC]
  24. RewriteCond %{HTTP_REFERER} !^http://mail.bjabc.com .net$      [NC]
  25. RewriteCond %{HTTP_REFERER} !^http://mail.ww.010abc.cn/.*$      [NC]
  26. RewriteCond %{HTTP_REFERER} !^http://mail.ww.010abc.cn$      [NC]
  27. RewriteCond %{HTTP_REFERER} !^http://mail.www2.010abc.cn/.*$      [NC]
  28. RewriteCond %{HTTP_REFERER} !^http://mail.www2.010abc.cn$      [NC]
  29. RewriteCond %{HTTP_REFERER} !^http://qy.010abc.cn/.*$      [NC]
  30. RewriteCond %{HTTP_REFERER} !^http://qy.010abc.cn$      [NC]
  31. RewriteCond %{HTTP_REFERER} !^http://qy010abc.bjabc.com .net/.*$      [NC]
  32. RewriteCond %{HTTP_REFERER} !^http://qy010abc.bjabc.com .net$      [NC]
  33. RewriteCond %{HTTP_REFERER} !^http://sy.bjabc.com .com/.*$      [NC]
  34. RewriteCond %{HTTP_REFERER} !^http://sy.bjabc.com .com$      [NC]
  35. RewriteCond %{HTTP_REFERER} !^http://syabc.com .bjabc.com .net/.*$      [NC]
  36. RewriteCond %{HTTP_REFERER} !^http://syabc.com .bjabc.com .net$      [NC]
  37. RewriteCond %{HTTP_REFERER} !^http://ww-010abc-cn.bjabc.com .net/.*$      [NC]
  38. RewriteCond %{HTTP_REFERER} !^http://ww-010abc-cn.bjabc.com .net$      [NC]
  39. RewriteCond %{HTTP_REFERER} !^http://ww.010abc.cn/.*$      [NC]
  40. RewriteCond %{HTTP_REFERER} !^http://ww.010abc.cn$      [NC]
  41. RewriteCond %{HTTP_REFERER} !^http://www.010abc.bjabc.com .net/.*$      [NC]
  42. RewriteCond %{HTTP_REFERER} !^http://www.010abc.bjabc.com .net$      [NC]
  43. RewriteCond %{HTTP_REFERER} !^http://www.bjabc.com .bjabc.com .net/.*$      [NC]
  44. RewriteCond %{HTTP_REFERER} !^http://www.bjabc.com .bjabc.com .net$      [NC]
  45. RewriteCond %{HTTP_REFERER} !^http://www.bjabc.com .com/.*$      [NC]
  46. RewriteCond %{HTTP_REFERER} !^http://www.bjabc.com .com$      [NC]
  47. RewriteCond %{HTTP_REFERER} !^http://www.bjabc.com .net/.*$      [NC]
  48. RewriteCond %{HTTP_REFERER} !^http://www.bjabc.com .net$      [NC]
  49. RewriteCond %{HTTP_REFERER} !^http://www.cc.bjabc.com .com/.*$      [NC]
  50. RewriteCond %{HTTP_REFERER} !^http://www.cc.bjabc.com .com$      [NC]
  51. RewriteCond %{HTTP_REFERER} !^http://www.ccabc.com .bjabc.com .net/.*$      [NC]
  52. RewriteCond %{HTTP_REFERER} !^http://www.ccabc.com .bjabc.com .net$      [NC]
  53. RewriteCond %{HTTP_REFERER} !^http://www.cd.bjabc.com .com/.*$      [NC]
  54. RewriteCond %{HTTP_REFERER} !^http://www.cd.bjabc.com .com$      [NC]
  55. RewriteCond %{HTTP_REFERER} !^http://www.cdabc.com .bjabc.com .net/.*$      [NC]
  56. RewriteCond %{HTTP_REFERER} !^http://www.cdabc.com .bjabc.com .net$      [NC]
  57. RewriteCond %{HTTP_REFERER} !^http://www.cq.bjabc.com .com/.*$      [NC]
  58. RewriteCond %{HTTP_REFERER} !^http://www.cq.bjabc.com .com$      [NC]
  59. RewriteCond %{HTTP_REFERER} !^http://www.cqabc.com .bjabc.com .net/.*$      [NC]
  60. RewriteCond %{HTTP_REFERER} !^http://www.cqabc.com .bjabc.com .net$      [NC]
  61. RewriteCond %{HTTP_REFERER} !^http://www.mail.bjabc.com .net/.*$      [NC]
  62. RewriteCond %{HTTP_REFERER} !^http://www.mail.bjabc.com .net$      [NC]
  63. RewriteCond %{HTTP_REFERER} !^http://www.mail.ww.010abc.cn/.*$      [NC]
  64. RewriteCond %{HTTP_REFERER} !^http://www.mail.ww.010abc.cn$      [NC]
  65. RewriteCond %{HTTP_REFERER} !^http://www.mail.www2.010abc.cn/.*$      [NC]
  66. RewriteCond %{HTTP_REFERER} !^http://www.mail.www2.010abc.cn$      [NC]
  67. RewriteCond %{HTTP_REFERER} !^http://www.qy.010abc.cn/.*$      [NC]
  68. RewriteCond %{HTTP_REFERER} !^http://www.qy.010abc.cn$      [NC]
  69. RewriteCond %{HTTP_REFERER} !^http://www.qy010abc.bjabc.com .net/.*$      [NC]
  70. RewriteCond %{HTTP_REFERER} !^http://www.qy010abc.bjabc.com .net$      [NC]
  71. RewriteCond %{HTTP_REFERER} !^http://www.sy.bjabc.com .com/.*$      [NC]
  72. RewriteCond %{HTTP_REFERER} !^http://www.sy.bjabc.com .com$      [NC]
  73. RewriteCond %{HTTP_REFERER} !^http://www.syabc.com .bjabc.com .net/.*$      [NC]
  74. RewriteCond %{HTTP_REFERER} !^http://www.syabc.com .bjabc.com .net$      [NC]
  75. RewriteCond %{HTTP_REFERER} !^http://www.ww-010abc-cn.bjabc.com .net/.*$      [NC]
  76. RewriteCond %{HTTP_REFERER} !^http://www.ww-010abc-cn.bjabc.com .net$      [NC]
  77. RewriteCond %{HTTP_REFERER} !^http://www.ww.010abc.cn/.*$      [NC]
  78. RewriteCond %{HTTP_REFERER} !^http://www.ww.010abc.cn$      [NC]
  79. RewriteCond %{HTTP_REFERER} !^http://www.www2.010abc.cn/.*$      [NC]
  80. RewriteCond %{HTTP_REFERER} !^http://www.www2.010abc.cn$      [NC]
  81. RewriteCond %{HTTP_REFERER} !^http://www.xa.bjabc.com .com/.*$      [NC]
  82. RewriteCond %{HTTP_REFERER} !^http://www.xa.bjabc.com .com$      [NC]
  83. RewriteCond %{HTTP_REFERER} !^http://www.xaabc.com .bjabc.com .net/.*$      [NC]
  84. RewriteCond %{HTTP_REFERER} !^http://www.xaabc.com .bjabc.com .net$      [NC]
  85. RewriteCond %{HTTP_REFERER} !^http://www2.010abc.cn/.*$      [NC]
  86. RewriteCond %{HTTP_REFERER} !^http://www2.010abc.cn$      [NC]
  87. RewriteCond %{HTTP_REFERER} !^http://xa.bjabc.com .com/.*$      [NC]
  88. RewriteCond %{HTTP_REFERER} !^http://xa.bjabc.com .com$      [NC]
  89. RewriteCond %{HTTP_REFERER} !^http://xaabc.com .bjabc.com .net/.*$      [NC]
  90. RewriteCond %{HTTP_REFERER} !^http://xaabc.com .bjabc.com .net$      [NC]
  91. RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ http://www.bjabc.com .com/daolian.html [R,NC]
复制代码

一路同行

发表于 2010-3-23 11:25:21 | 显示全部楼层

防盗链你这不是已经开过了嘛

winzeng

发表于 2010-3-23 11:52:08 | 显示全部楼层

是启用了  但是有这个提示 There was an error while enabling hotlink protection
RAKSmart

一路同行

发表于 2010-3-23 12:06:54 | 显示全部楼层

把htaccess文件备份一下,再删掉,然后在hotlink里重新开启试试

winzeng

发表于 2010-3-23 13:46:35 | 显示全部楼层

试了 还是这样   这是自动生成的

一路同行

发表于 2010-3-23 14:01:52 | 显示全部楼层

你的htaccess是不是还有其他内容?错误显示 大概在12行有个标记错了

winzeng

发表于 2010-3-23 15:17:12 | 显示全部楼层

没有其他内容(自动生成的) ,对比了一下和上面的一样  12行也正常  郁闷  ,  另外问一下 一路 BL 的子域名可以去掉吗 好像去不了 ,每一个都有呢
您需要登录后才可以回帖 登录 | 注册

本版积分规则