Last active
September 21, 2018 06:27
-
-
Save RobDWaller/4aaf07a5e714370ee2404befbe3749ae to your computer and use it in GitHub Desktop.
Nginx 301 SSL Redirect Server Block
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
server { | |
listen 80; | |
server_name www.website.com website.com; | |
if ($args) { | |
return 301 https://website.com$uri?$args; | |
} | |
return 301 https://website.com$uri; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment