Htaccess redirect all files from subdirectory in one domain to another domain
snippet in htaccess

Htaccess redirect all files from subdirectory in one domain to another domain

user5252

Options +FollowSymlinks -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.primary\.com  [NC]
RewriteRule ^apples/(.*)  http://www.secondary.com/$1 [R=301,NC,L]