我有一個關於htaccess的問題,它是重寫。
我有這樣的代碼:忽略部分鏈接使用htaccess
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^users/(\d+)*$ ./profile.php?id=$1
RewriteRule ^threads/(\d+)*$ ./thread.php?id=$1
RewriteRule ^search/(.*)$ ./search.php?query=$1
這example.com/users/123
是等於example.com/profile.php?id=123
。
如果我改變鏈接這樣的:ID後example.com/users/123/John
威爾的htaccess忽略/約翰或任何額外的字符?
事實上,約翰是123 ID的實名,我希望它是。