Skip to content

Instantly share code, notes, and snippets.

@jdevalk
Created May 21, 2013 20:39
Show Gist options
  • Star 13 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save jdevalk/5623050 to your computer and use it in GitHub Desktop.
Save jdevalk/5623050 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;
}
@philiparthurmoore
Copy link

@sceptic30 Thanks for the heads up. That did the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment