Skip to content

Instantly share code, notes, and snippets.

@Li-blog
Created March 28, 2016 13:11
Show Gist options
  • Save Li-blog/9b025afe05d5abbd6bfc to your computer and use it in GitHub Desktop.
Save Li-blog/9b025afe05d5abbd6bfc to your computer and use it in GitHub Desktop.
location / {
try_files $uri $uri/ /index.php?$args;
}
# Add trailing slash to */wp-admin requests.
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment