Skip to content

Instantly share code, notes, and snippets.

View TheZoidMaster's full-sized avatar
‼️
goodbye github

Zoid TheZoidMaster

‼️
goodbye github
View GitHub Profile
@JustThomas
JustThomas / nginx_remove_double_slashes.md
Created February 4, 2018 17:16
nginx: Remove double slashes from URLs

Put the following directives in your server block. nginx will then redirect URLs with double (or triple or multiple) slashes to the corresponding URL with a single slash.

merge_slashes off;
rewrite ^(.*?)//+(.*?)$ $1/$2 permanent;