0
我試圖改變這個網址: example.com/stickit/note.php?note=1
這樣: example.com/stickit/note/1mod_rewrite的 - URL與子目錄
我試圖做這種方式,但我得到的是一個404錯誤:
RewriteEngine On
RewriteRule ^stickit/note/(.*)$ /stickit/note.php?note=$1 [L]
有趣的是,這個工程:
RewriteEngine On
RewriteRule ^note/(.*)$ /stickit/note.php?note=$1 [L]
它改變example.com/stickit/note.php?note=1
到:example.com/note/1