<ifModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ /converter/converter.php?request=$1 [L,QSA]
</ifModule>
Redirect permanent /test1/fruits/ https://domain2.ru/test2/fruits-test/
Redirect permanent /test1-test/ https://domain2.ru/test2-test/
RewriteRule ^test1/fruits/$ https://domain2.ru/test2/fruits-test/ [R=301,L]
RewriteRule ^test1-test/$ https://domain2.ru/test2-test/ [R=301,L]