我有我认为是一个简单的mod_rewrite规则。mod_rewrite怪异地附加了21个斜杠到URL
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^store/([a-z0-9_\-]+)/?([a-z0-9_\-]+)?(.*)?$ store/$2?store_name=$1$3 [L]
然而,当我去到一个URL,如:
http://www.mydomain.com/store/e95_airport/
它变成:
http://www.mydomain.com/store/e95_airport/////////////////////
我期待的URL负载:
index.php? STORE_NAME = e95_airport
当我打电话像一个URL,它工作正常:
店/ e95_airport /一些页面,其他超的index.php
我已经停用所有其他的mod_rewrite规则,以防在我的.htaccess文件的其他地方发生冲突。有没有人可以诊断我的重写规则有什么问题?任何帮助是极大的赞赏!
貌似有一个与'DirectorySlash',不知道如何虽然 –