Hi,
I'm trying to redirect a pdf file to a new url:
Old url is: https://domain.tld/wp-content/uploads/2022/03/Terminanfrage.pdf and I want to redirect it to https://otherdomain.de.
Other redirects, I set up, are working fine. It seems to be related to the wp-content directory. When I try to redirect the pdf from anywhrere within the wp-content directory, I get a 404, If I redirect it from the sites' root, it works fine.
I tried it using the redirect feature in admin tools and via the settings in the .htaccess maker. Tried:
RewriteRule ^wp-content/uploads/2022/03/Terminanfrage.pdf$ https://otherdomain.de[R=301,L,NC]
neither in "Custom .htaccess rules at the top of the file" nor in "Custom .htaccess rules at the bottom of the file" the rewrite instructions were effective.
(tried to edit my previous ticket, but wasn't able to edit the text, so I closed it an created a new one, sorry for the mess....)