我有一个关于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的实名,我希望它是。