Redirect all access requests to a domain and subdomain(s) except from specific IP address? [closed]
- by Christopher
This is a self-answered question... After much wrangling I found the magic combination of mod_rewrite rules so I'm posting here.
My scenario is that I have two domains - domain1.com and domain2.com - both of which are currently serving identical content (by way of a global 301 redirect from domain1 to domain2). Domain1 was then chosen to be…