Skip to content

Instantly share code, notes, and snippets.

@zooks
Created August 17, 2017 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zooks/e2136f908c386db6c1b2b763498138a1 to your computer and use it in GitHub Desktop.
Save zooks/e2136f908c386db6c1b2b763498138a1 to your computer and use it in GitHub Desktop.
nginx trailing slash
location / {
rewrite ^(/(?!backend).*[^/])$ $1/ permanent;
try_files $uri /index.php$is_args$args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment