floridaDev Posted September 5, 2017 Posted September 5, 2017 When I redirect urls using .htaccess file the page gets redirected along with additional IT= paramaters that I want removed. Example: Redirect 301 /page-one/ /page-two/ The page gets redirected to website.com/page-two/?it=page-one Looking though the .htaccess file I see the following line is active RewriteRule ^(.*)$ index.php?it=$1 [L,QSA] Removing it=$1 makes my redirects go to index.php How can I properly get these pages redirected without the trailing IT=<page-url> Thanks
Mike Rockett Posted September 5, 2017 Posted September 5, 2017 Best not to use the Redirect directive. Rather use RewriteRule ^page-one/?$ /page-two/ [R=301,L] just after RewriteEngine On. Alternatively, use Jumplinks. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now