Error with '/' in links


#1

Links like

https://demo.ghost.io//welcome/////

open without redirecting to https://demo.ghost.io/welcome/. How it can be fixed?


#2

That’s a proxy related question. Nginx could be the tool you are looking for :slight_smile:


#3

Yep, i just put

if ($request_uri ~* "\/\/") {
                rewrite ^/(.*)      $scheme://$host/$1    permanent;
            }

in my nginx.conf :relaxed:


#4

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.