Last active
August 29, 2015 14:07
-
-
Save libo1106/9ad57329800716c22077 to your computer and use it in GitHub Desktop.
ThinkPHP Nginx Rewrite
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 / { | |
if (!-e $request_filename){ | |
rewrite ^(.*) /index.php?s=$1 last; | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment