Created
July 24, 2014 23:30
-
-
Save richardtape/2a49fdb408ee3f1dbd64 to your computer and use it in GitHub Desktop.
nginx rewrite rules for composer-ised WordPress
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
# 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