I have a wordpress blog with Nextgen gallery installed, I want to redirect all the gallery image request to another domain.I have duplicated all the images from site1 to site2 folder.
http://site1.com/wp-content/uploads/gallery/folder/*.jpg
to
http://site2.com/gallery/folder/*.jpg
please help me with the .htaccess redirect rules
You have to make sure the custom rules don’t get in conflict with WP own rule-set.
Assuming it is the standard one in one .htaccess file at root directory, replace it with the following one:
Option:
For any file type, replace the last rule with this one: