|
Htaccess: problems with rewriting for the gclid querystring
I have problems with rewriting for the gclid querystring (Google Adwords).
This is what I want:
http://www.domain.com/?gclid=abcdetc
should be:
http://www.domain.com/redirect,?gclid=abcdetc
http://www.domain.com/page/?gclid=abcdetc
should be:
http://www.domain.com/page/redirect,?gclid=abcdetc
http://www.domain.com/page/subpage/?gclid=abcdetc
should be:
http://www.domain.com/page/subpage/redirect,?gclid=abcdetc
This is a part of my htaccess:
## search for query string "gclid"
RewriteCond %{QUERY_STRING} ^(gclid=.*)$
## ignore url's with "redirect,"
RewriteCond %{REQUEST_URI} !(.*?)redirect,(.*?)$
... a redirect rule over here ? ...
## get mvc index to build site
RewriteRule (.*) /html/$1 [L]
Please tell me how to solve this.
|