,所以我有這個在我的.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