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
。
これへのリンクを変更すると: example.com/users/123/John
htaccess は /John または ID の後の余分な文字を無視しますか?
実はジョンは123IDの本名なのです。