-
-
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.
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
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