.htaccess错误,禁止403

时间:2013-12-10 03:04:31

标签: .htaccess litespeed

我设置.htaccess就像:

RewriteRule ^news/(.*)/(.*).html$ news.php?id=$1&content=$2 [QSA,L]

结果就像:

http://example.com/399/tutorial-centos.html

但是,如果我尝试:

http://example.com/399/.html

http://example.com/399/.tutorial-centos.html

我收到了错误:

403 Forbidden
Access to this resource on the server is denied! Powered By LiteSpeed Web Server
LiteSpeed Technologies is not responsible for administration and contents of this web site!

我试过把它放在.htaccces:

ErrorDocument 403 /index.php

但仍然有错误:( 如何解决?

感谢您的帮助。

0 个答案:

没有答案