Created
November 7, 2021 07:35
-
-
Save parsafatehi/2a1b47cd4b6c59595be3bc6b463856ed to your computer and use it in GitHub Desktop.
Redirect to a different domain - NGINX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Redirect to a different domain | |
server { | |
server_name .domain1.com; | |
return 301 https://domain2.com$request_uri; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment