I need to do a redirect within wp-content/uploads/
– to a new image name, because the old one doesn’t work. How do you do this?
I want to redirect from https://example.com/wp-content/uploads/2021/09/image-1.png
to https://example.com/wp-content/uploads/2021/09/image-2.png
– I tried using both of our 301 redirect plugins (Yoast, and Redirection) but neither worked.
I also tried changing .htaccess
to this from (https://wordpress.org/support/topic/htaccess-cant-redirect-file-under-wp-content/):
# ...stuff above
# END WordPress
RedirectMatch 301 (?i)/wp-content/uploads/2021/09/image-1.png https://website.com/wp-content/uploads/2021/09/image-2.png
# ...stuff below
But it didn’t work.
How do you do this?