Answer the question
In order to leave comments, you need to log in
How to formulate a redirect of requests from unauthorized mirrors to the main domain?
Good afternoon, after hacking our server, unwanted mirrors were formed, we managed to solve this problem with such a condom for Apache
RewriteEngine on
RewriteCond %{HTTP_HOST} !^edeal.market$
RewriteRule ^(.*) https://edeal.market/$1 [R=301,L]
Answer the question
In order to leave comments, you need to log in
Thanks everyone, I found this solution.
server {
listen 80 default_server;
return 302 https://ВАШ_ДОМЕН$request_uri;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question