A
A
Alibek Kulseitov2015-06-14 17:03:19
PHP
Alibek Kulseitov, 2015-06-14 17:03:19

Redirecting the user to another page?

There is a main site and a couple of sites that lay at its root, that is:
test.ru - Main site
test.ru/doma
test.ru/bary
test.ru/restorany
and so on.
What condition should be written in htaccess so that a person following a link for example
test.ru/yd/restorany
redirects him to test.ru/restorany ( It turns out without YD)
which channel the request came from.
mychina.kz/china2/?utm_source=vk_r&utm_medium=cpc&...
Such conditions must be specified for each of the above sites.
Help good people =)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IceJOKER, 2015-06-14
@AlibekKulseitov

RewriteEngine on
RewriteRule ^yd/(.*?)$ /$1

gmvezjNtdVzOra.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question