Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save flayder/3d644368795fccd63be0947451534fc7 to your computer and use it in GitHub Desktop.
Save flayder/3d644368795fccd63be0947451534fc7 to your computer and use it in GitHub Desktop.
merge_slashes on;
if ($request_uri ~* "\/\/+") {
rewrite ^/(.*) $scheme://$host/$1 permanent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment