Repository navigation
Fix double slash in url
#1902
For .htaccess
RewriteCond %{THE_REQUEST} ([^\s]*)\/{2,}(\?[^\s]*)?
RewriteRule . %1/%2 [R,L]
For Nginx
if ($request_uri ~* "\/\/") {
rewrite ^/(.*) $scheme://$server_name/ permanent;
}
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment