htaccess コードを使用する場合:
RewriteRule ^test/(.*)/?$ /taxis/index.php?location=$1 [L,QSA,NC,R]
リンクへのナビゲーション:
htaccess が機能し、次の場所に転送されます: http://test.co.uk/taxis/index.php?location=abcde
ただし、同じディレクトリに適用されるように書き換えルールを変更したいと思います。
^taxis/(.*)/?$ /taxis/index.php?location=$1 [L,QSA,NC,R]
しかし、リンクに移動すると:
リンクが機能せず、次のように生成されます。
http://test.co.uk/taxis/index.php?location=index.php&location=index.php&location=index.php&location=index.php&location=index.php&location=index.php&location=index.php&location=index.php&location=index.php&location=index.php&location=index.php&location=index.php&location=index.php&location=index.php&location=index.php&location=index.php&location=index.php&location=index.php&location=index.php&location=index.php&location=abcde
これを微調整して私に与える方法を知っていますか: