0
如果我使用htaccess的代码: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
你知道我可以调整这给我:
http://test.co.uk/taxis/index.php?location=abcde
非常感谢你,乔恩,我一直在这一整天工作,现在它已完成和工作。我没有意识到重写引擎会一遍又一遍地循环。 – scott 2013-04-23 19:13:42