regex - htaccess append Google campaign tracking to aliased url -
sorry duplicating thread (htaccess rewrite url append google campaign tracking causing redirect loop) other 1 requires 50 points post comment don't have
i have simple alias in .htaccess
rewritecond %{request_uri} /contact$ rewriterule .* /content.php?id=17 [l]
and i'm using analytics tracking need add qs like
?utm_source=somesource&utm_medium=email&utm_campaign=somecode
to alias.
i tried change in .htaccess following neither of them work:
rewritecond %{request_uri} /contact$ rewriterule .* /content.php?id=17 [l,qsa] rewritecond %{request_uri} /contact$ rewriterule .* /content.php?id=17&%{query_string} [l]
how catch query string then?
thank you
replace of code this:
rewriterule ^contact/?$ content.php?id=17 [l,qsa,nc]
Comments
Post a Comment