Created
May 21, 2013 20:39
-
-
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.
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
location /redirect/ { | |
rewrite ^/redirect/(.*)$ /redirect/index.php?id=$1 last; | |
} |
Can't really figure out how to get it working on NGINX. Do i need to delete the .htaccess file in the /out/ folder and upload this file and change the /redirect/ to the folder name im using? Or do i change code in the general nginxconfig file in the root of my website?
@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
For some reason, this doesnt work in a wordpress installation (in a normal site yes), anyone imagining why?
Edit, problem solved:
Dont use index.php as link file but choose other file name.