Last active
October 25, 2017 21:26
-
-
Save jameswritescode/a7e50f6c76308828235d5696f0ac3fe7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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; | |
listen 80; | |
server_name ~^(?<sub>[\w\-]+)\.domainhere\.com$; | |
rewrite ^/en/(.*)$ $1 last; | |
return 301 $scheme://domainhere.com/$sub$request_uri; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment