我试图让 htaccess 重写这个 url:
http://127.0.0.1/papercut3/article/post-title/
对此:
http://127.0.0.1/papercut3/article.php?p=post-title/
我当前的 .htaccess 是:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^article/(\d+)*$ ./article.php?p=$1
RewriteRule ^section/(\d+)*$ ./section.php?s=$1
我的网址写在代码中:
http://127.0.0.1/papercut3/article/execution-call-for-cinema-killer/
我的问题是,当我单击链接时,我得到了这个:
Not Found
The requested URL /papercut3/article/syria-suffers-deadliest-month/ was not found on this server.
我正在使用 WAMP,.htaccess 位于 /papercut3 目录的根目录中,其中包含所有核心文件。任何帮助将不胜感激!:)