我将 .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
但仍然有错误:(如何解决?
谢谢你帮助我。