We like to have trailing slashes enabled and checked PrettyUrls to enable redirect 301 from
/frankfurt to /frankfurt/
From here I learned that redirecting with 301 in netlify.toml, to get trailing slashes, will not work. trailing slash docs
But why the PrettyUrls redirecting feature is not working for me?
I get no 301 redirect for the folloing url with Pretty Urls enabled.
www.stayery.de/frankfurt does not redirect(301) to: www.stayery.de/frankfurt/
From without trainling slash to with trailing slash?
This leads to duplicated contetent for /frankfurt and /frankfurt/
There are a lot of other urls in our project with the same problem. This is why the topic is huge for us.
To get the content for /frankfurt
Im using the netlify proxy, who gets the content from a content management server outside of netlify.
The redirect from the cms server, can be tested with a direct request to
with header set to : X-Host = “www.stayery.de”
Only with this header a request is allowed ! And you will get the redirect.