A
A
Apocryphon12019-05-09 13:37:50
htaccess
Apocryphon1, 2019-05-09 13:37:50

How to save UTM tag when redirecting via .htaccess?

I have redirect set up via htaccess:

RewriteEngine On 
RewriteCond %{HTTP_HOST} (.*) 
RewriteRule (.*) http://site.ru/$1 [R=301,L]

How to make sure that the utm-tag, by which a person came, is preserved after a redirect to a new domain?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Syomka Gavrilenko, 2019-05-09
@Apocryphon1

Use the QSA flag :

RewriteEngine On 
RewriteCond %{HTTP_HOST} (.*) 
RewriteRule (.*) http://site.ru/$1 [R=301,L,QSA]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question