我设置.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
但仍然有错误:( 如何解决?
感谢您的帮助。