I'm going to move from old domain to new domain. I fixed all the settings, but none worked. While entering the old domain name in the url, I will encounter the message of not redirecting to the new domain.
1 Answer
Something like this in your server
block should work:
...
server_name old.example;
return 301 $scheme://new.example$request_uri;
...
-
1
https://motocode.ir/
is redirecting to itself.