I've got an url coming in as:
/index.php?/location/&gclid=287ejek22kj
This is going to a 404 page because of the gclid...
I need it to go to:
/index.php?/location
I've tried this, with no success:
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)&gclid=(.*)$ $1 [L]
All help is appreciated. Thanks.
/location
. The main issue with what you're trying to do is that you're trying to capture the QUERY_STRING (everything after the ?). You need to treat this specially in RewriteRules