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]
Note: Also see the Yahoo! Group on which I present similar issues:IMRo. To join, email email@example.com and reply to the confirmation email.