I
I
Ivan Gvrl2019-02-17 17:12:21
htaccess
Ivan Gvrl, 2019-02-17 17:12:21

How to redirect a user from a specific domain using htaccess?

Hello. One lazy developer spars my site with a portfolio and links to my work. So I have access to all my works. I want to set up a redirect of all users who came to my clients' sites from the thief's domain to my own domain.
Found a solution:

RewriteEngine on
RewriteCond %{HTTP_REFERER} $(www.)?урл1.ru$
RewriteRule .* https://новыйурл.com/ [R=301,L]

but doesn't work...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question