,所以我有这个在我的.htaccess文件htaccess的mod_rewrite的给我404
RewriteEngine On
RewriteBase /core/
RewriteCond %{QUERY_STRING} ^page=([0-9]+)$
RewriteRule ^page page/%1/? [L]
我的网址是
http://localhost/core/page.php?page=8
与应用的规则我得到..
Not Found
The requested URL /core/page/8/ was not found on this server.
这是在wampserver上运行2.2
文件结构看起来像
c:/wamp/www/core
.htaccess位于/ core /目录中。 什么是我失踪..我检查了我的apache.conf文件,它看起来很好。
等等,我很困惑。您正试图将**/core/page/8/**改写为**/core/page.php?page = 8 **对吗?看到我更新的答案。 – kjetilh 2013-03-06 07:28:23