Я сделал так, переименовал файл getphoto соответственно на всех страницах сайта картинки отвалились, но на главной всё работает.
#^letter/(?P<page>[а-яё]{1,2})/detail/(?P<page>\d+)$#u
(?P<page>
RewriteCond %{REQUEST_URI} "!^/fruits/avocado i mango/"
RewriteRule "^fruits test/$" https://domain2.ru/newurl [R=301,L]
RewriteRule ^test/$ "https://domain2.ru/fruits test/" [R=301,L]
RewriteRule ^(.*)$ /index.php/$1 [L,QSA]
RewriteRule ^(.*)$ /index.php/$1 [L,QSA]
Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php index.html
AddDefaultCharset UTF-8
#php_flag register_globals off
#php_value memory_limit 180M
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^(www\.|)oldsite\.ru$ [NC]
RewriteRule ^(.*)$ https://newsite.ru/$1 [R=301,L]
RewriteCond $1 !^(index\.php|uploads|robots\.txt|favicon\.ico|sitemap\.xml)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L,QSA]
</IfModule>
RewriteCond %{HTTP_HOST} ^(?:www\.|)site\.ru$ [NC]
RewriteRule ^(.*)/(.*).html$ index.php?city=$1&articles=$2 [L]
RewriteCond %{HTTP_HOST} ^(?>www\.|)([^.]+)\.site\.ru$ [NC]
RewriteRule ^(.*)\.html$ index.php?city=%1&articles=$1 [L]