Skip to content

Instantly share code, notes, and snippets.

@akatz
Created October 24, 2008 17:52
Show Gist options
  • Save akatz/19525 to your computer and use it in GitHub Desktop.
Save akatz/19525 to your computer and use it in GitHub Desktop.
location / {
index index.php;
if (!-e $request_filename) {
rewrite ^([_0-9a-zA-Z-]+)?(/wp-.*) $2 break; # NOTE BREAK
rewrite ^([_0-9a-zA-Z-]+)?(/.*\.php)$ $2 last;
rewrite ^ /index.php last;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment