Answer the question
In order to leave comments, you need to log in
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]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question