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
## If someone enters two slashes, '//' combine them into one | |
merge_slashes on; | |
## Make sure everything is forwarded to https:// | |
if ($scheme = http) { | |
return 301 http://$server_name$request_uri; | |
} | |
## Remove trailing slashes |