Skip to content

Instantly share code, notes, and snippets.

@rla
Created December 20, 2016 23:30
Show Gist options
  • Save rla/cce88eeb01361ebbcef67f04a38906b9 to your computer and use it in GitHub Desktop.
Save rla/cce88eeb01361ebbcef67f04a38906b9 to your computer and use it in GitHub Desktop.
server {
location ~ ^/something(.*)$ {
return 301 https://someplace.com;
}
return 301 https://example.com;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment