Skip to content

Instantly share code, notes, and snippets.

@001101
Forked from jdevalk/gist:5623050
Created December 7, 2016 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 001101/11d1e3459a1956e4df1e0e1f443e98bc to your computer and use it in GitHub Desktop.
Save 001101/11d1e3459a1956e4df1e0e1f443e98bc to your computer and use it in GitHub Desktop.
Redirect script sample NGINX code. Make sure this location line sits above the "location /" code in your NGINX config.
location /redirect/ {
rewrite ^/redirect/(.*)$ /redirect/index.php?id=$1 last;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment