Skip to content

Instantly share code, notes, and snippets.

@yiquncode
Created May 12, 2012 12:57
Show Gist options
  • Save yiquncode/2666402 to your computer and use it in GitHub Desktop.
Save yiquncode/2666402 to your computer and use it in GitHub Desktop.
wordpress rewrite rule for nginx
# unless the request is for a valid file, send to bootstrap
if (!-e $request_filename)
{
rewrite ^(.+)$ /index.php?q=$1 last;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment