Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我试图重写:
url.com/edit_note.php?noteid=243
至
url.com/n/243
我正在使用这个:
RewriteEngine On RewriteRule /n/(.*)$ /edit_note.php?noteid=$1
关于为什么这不起作用的任何想法?
尝试这个:
RewriteEngine On RewriteRule ^n/([^/]*)$ /edit_note.php?noteid=$1 [L]
利用:
RewriteEngine On RewriteRule ^n/(.*)$ /edit_note.php?noteid=$1 [L]