Skip to content

Instantly share code, notes, and snippets.

@edingc
Created July 12, 2012 18:57
Show Gist options
  • Save edingc/3100143 to your computer and use it in GitHub Desktop.
Save edingc/3100143 to your computer and use it in GitHub Desktop.
Client-friendly WordPress administration URL rewrites in nginx
location /{
# Other rules here...
rewrite ^/[Ll][Oo][Gg][Ii][Nn]$ /login/ permanent;
rewrite ^/[Ll][Oo][Gg][Ii][Nn]/$ /wp-login.php permanent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment