Skip to content

Instantly share code, notes, and snippets.

@richardtape
Created July 24, 2014 23:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardtape/2a49fdb408ee3f1dbd64 to your computer and use it in GitHub Desktop.
Save richardtape/2a49fdb408ee3f1dbd64 to your computer and use it in GitHub Desktop.
nginx rewrite rules for composer-ised WordPress
# First two are for standard WordPress install (non-multisite)
# Add trailing slash to */wp-admin requests.
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
# Remove need for /wp/
rewrite ^(/[^/]+)?(/wp-.*) /wp$2 last;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment