Skip to content

Instantly share code, notes, and snippets.

@tmp27017
Created July 17, 2021 04:48
Show Gist options
  • Save tmp27017/750d6000bc34e9feb8a34261d4630d80 to your computer and use it in GitHub Desktop.
Save tmp27017/750d6000bc34e9feb8a34261d4630d80 to your computer and use it in GitHub Desktop.
Remove trailing slashes in NGINX & WordPress
location /app {
try_files $uri $uri.html $uri/index.html $uri/index =404;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment