I have some wildcard redirects which are currently working fine...
https://www.domain-name.com/$1
However, I would like to add a GET variable after it, so that in my CMS, I can trace the referrer. I have tried the below, however it just outputs the $1 to the URL.
https://www.domain-name.com/$1?redirect=foobar
Hopefully this is a simple fix!
Edit - these redirects are generated from cPanel, so the generated code is...
RewriteCond %{HTTP_HOST} ^domain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.domain\.com$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^/?$ "https\:\/\/www\.domain\.uk\/\$1\?redirect\=redirect" [R=301,L]