Let’s say you have a .htaccess file. How to redirect all of your traffic to another web site, except for some URLs?
The code is the following, it does 301 redirect (the first two lines are for redirecting the homepage, then for all other URLs. Of course, you should change “olivian.ro” to your needs.
RewriteEngine on RewriteRule ^$ https://olivian.ro/categorie/im [R=301,L]
RewriteEngine on RewriteRule (.*) https://olivian.ro/$1 [R=301,L]