ok, here it is: i have two domains www.mermin-auto.ro and www.mermin.ro, mermin-auto.ro is redirected trough 301to www.mermin.ro and mermin.ro is redirected trough 301 to www.mermin.ro now i've discovered i have another page to redirect www.mermin.ro/shop (which i think is the ussual index) what should i do and how can i do it using same 301 redirect but keep in mynd that i already have this lines : RewriteCond %{HTTP_HOST} ^mermin.ro RewriteRule (.*) http://www.mermin.ro/$1 [R=301,L] hope i made my self clear, thanks you fr your time
Your problem is in the line: RewriteCond %{HTTP_HOST} ^mermin.ro which excludes mermin-auto.ro and www.mermin-auto.ro, but everything else is fine. You can modify the line: RewriteCond %{HTTP_HOST} ^mermin.*ro which should include mermin.ro, mermin-auto.ro, merminfoobarauto.ro etc but I haven't tested it.
i rather try with : RewriteCond %{HTTP_HOST} ^mermin*.ro, but i think i should wait for a better idea, thanks