.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
しかし、まだエラーが発生しています:(修正方法は?
私を助けてくれてありがとう。