Redirects on my website work fine – exept when I try to redirect URLs of PDF documents. As far as I can see, RankMath adds a trailing slash to the new URL, which works fine for regular pages, but not for files.
New URL (as entered in the WP backend):
New URL (as generated by RankMath):
I found some information on how to deactivate this behaviour for ALL redirects, but that’s not what I’m looking for. I need to remove the trailing slash for PDF documents and similar files in the media library only.
The ticket ‘Trailing Slashes for PDF Documents’ is closed to new replies.