How can I redirect my users from example.com / or www.example.com to new.example.com
but I dont want to redirect some specific urls like:
www.example.com/test.php
api.example.com/testo.php
www.example.com/forum/index.php
I did:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.example.com$
RewriteRule ^(.*)$ http://new.example.com/$1 [R=301,L]
but what is the rules for urls?