I have a website that is being redirected from an old host. I don't have the ability to change the redirect of the old host.
The issue is that the redirect is appending a trailing slash when it's not appropriate. Example: http://example.com/picture.jpg/
or http://example.com/page.html/
.
That is causing my server to return a 404.
Ideally, I would fix the redirect from the old site but cannot.
Is there a way to remove the trailing slash at the end of the URL? This is a site that is not complex (straight simple html, no scripting languages, etc.).
I looked and couldn't find an existing solution.