Created
July 23, 2014 09:07
-
-
Save guillaumepiot/e015a3dea6f8ffd661be to your computer and use it in GitHub Desktop.
NGINX - Rewrite query string to url path
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 ~ /more_details.php { | |
if ($args ~* "^profileID=(\d+)") { | |
set $mid $1; | |
set $args ''; | |
rewrite ^.*$ /view/$mid permanent; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment