I am writing to you because I have a problem with my website.
Since I published it on netlify, I have a lot of coverage problems in the google index, because it redirects the url’s without trailing slash, to the same address with trailing slash.
I have been reviewing the documentation and testing for some time without getting it to work.
I want to do a 301 redirection for all urls without trailing slash to the same url with trailing slash.
Thank you for your answers and I apologize for the delay in answering you.
A few months ago I tried to activate the option “Pretty URLs”, I let some time pass (3 months approximately) to try but it didn’t work. So I turned it off again. I’ve turned it back on to try again, but I don’t have much hope that it will solve my problem.
That’s why I considered as last possibility before moving the site to other static hosting, to add the redirection I mentioned in the _redirects file of the site.
This is a very broad topic, whether a host and the infrastructure will or will not omit the trailing slash!
As our docs state, a rewrite rule ain’t gonna cut it but prettifying URLs should. As for your indexing… this should change and reflect changes when enabling pretty URLs.