我想重定向到mysite.com/index.php
mysite.com/index.php?id_category=12&controller=category
.htaccess的重定向,重定向循環
這是我的htaccess文件。
但它不起作用。 Chrome說:This webpage has a redirect loop
。
Options +FollowSymLinks +SymLinksIfOwnerMatch
RewriteEngine On
RewriteBase/
RewriteRule index\.php http://mysite.com/index.php?id_category=12&controller=category
爲什麼'mysite.com/index.php'?你沒有在輸入的URL中傳遞參數,所以不需要輸入'index.php'。 'mysite.com'就夠了。 ¿你確定這就是你想要的嗎? –