I have to do a redirect inside wp-content/uploads/
– to a brand new picture identify, as a result of the previous one does not work. How do you do that?
I need to redirect from https://instance.com/wp-content/uploads/2021/09/image-1.png
to https://instance.com/wp-content/uploads/2021/09/image-2.png
– I attempted utilizing each of our 301 redirect plugins (Yoast, and Redirection) however neither labored.
I additionally tried altering .htaccess
to this from (https://wordpress.org/help/matter/htaccess-cant-redirect-file-under-wp-content/):
# ...stuff above
# END WordPress
RedirectMatch 301 (?i)/wp-content/uploads/2021/09/image-1.png https://web site.com/wp-content/uploads/2021/09/image-2.png
# ...stuff beneath
But it surely did not work.
How do you do that?