V
V
Violetta2014-06-01 13:06:28
URL Handling
Violetta, 2014-06-01 13:06:28

Redirect with url change?

How to make a redirect by adding a value to the url?
For example, there is a site xxx.com
, you need to make all traffic that comes from urls like
xxx.com/en/page-1
xxx.com/en/page-2
xxx.com/en/page-3 be
redirected to another domain and a constant value ?a=76&c=usd was added
and as a result traffic went to
yyy.com/en/page-1?a=76&c=usd
yyy.com/en/page-2?a=76&c=usd
yyy.com/en /page-3?a=76&c=usd

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stepan, 2014-06-01
@L3n1n

Add to .htaccess
RewriteRule en/page-1$ yyy.com/page-1?a=76&c=usd [R=301,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question