How to formulate redirect requests with unauthorized mirrors to the main domain?

0 like 0 dislike
14 views
Good day, after hacking our server was formed junk mirror, managed to solve the problem that condom for Apache
RewriteEngine on RewriteCond %{HTTP_HOST} !^edeal.market$ RewriteRule ^(.*) https://edeal.market/$1 [R=301,L]

Now, however, the website moved website on nginx + php-fpm, respectively, the question arose of how the same rule to interpret for ngnix?
by | 14 views

1 Answer

0 like 0 dislike
All, thanks I found this solution
server { listen 80 default_server; return 302 https://ВАШ_ДОМЕН$request_uri; }
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
33,962 users