I’m new to mod_rewrite, so I know this is probably a simple fix. I want to rewrite http://www.abc.com to http://www.xyz.com ONLY. I only want to do this in firefox. I do not want http://www.abc.com/def to redirect to http://www.xyz.com. Currently, I have the following:
RewriteCond %{HTTP_HOST} ^www.abc.com$ [NC]
RewriteCond %{HTTP_USER_AGENT} "firefox" [NC]
RewriteRule ^(.*)$ https://www.xyz.com [L,R=302]
I understand that the ^(.*)$ portion is what is allowing everything else to be redirected as well. What should I enter in there that will ONLY redirect http://www.abc.com?
Thank you!
Change the rule to