.htaccess - 301 redirect if no query string present
问题 i would like to create a 301 from a page to the same page except that the destination page has a parameter in the url. Browsers show me an error (too many redirects) so its seems that there is an infinite loop. This is my code: RewriteEngine on Redirect 301 /index.php http://www.monsite.com/index.php?step=1 thanks to advice me for that :D 回答1: You need to conditionalize the redirect and do it in PHP to prevent the infinite redirect loop. index.php: if(!isset($_GET['step'])){ header('Location