Skip to content

Instantly share code, notes, and snippets.

@libo1106
Last active August 29, 2015 14:07
Show Gist options
  • Save libo1106/9ad57329800716c22077 to your computer and use it in GitHub Desktop.
Save libo1106/9ad57329800716c22077 to your computer and use it in GitHub Desktop.
ThinkPHP Nginx Rewrite
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