我试图将我现有的url从http://localhost/website/article.php?id=5重写到http://localhost/website/article/5,因此我的htaccess代码RewriteEngine On
RewriteCond文章似乎被添加到文件的url中,甚至重定向文件目录。我的实际问题是我的资源url也被重命名了。id=$1
-- First we consider whether the incoming URL matches a physical file in the /public folder --> <action type="Rewrite" url="public{REQUEST_URI}"/>
<!-- All other URLs are mapp