I tried looking for this, but my google-fu is missing today.
So, I have 2 versions of the site, in
/var/www/vhosts/testa.mydomain.com/httpdocs and
/var/www/vhosts/testb.mydomain.com/httpdocs
where each documentroot is pretty much a complete revision of the site, and I want to do A / B (multidimensional) testing to see which site works better.
Googling last week I saw offers to complete this time (even and odd seconds), but since the site is a basket site (or perhaps even a basket), I donβt want to switch between two different mid-transaction transaction processing scenarios.
So, I thought it would be nice to work with testa if the client ip address was the last octet, and from testb if the last octet was odd. Then we could at least get some indicators regarding how many people abandoned the basket as too bulky in different versions of the site.
I am sure that a bunch of RewriteCond lines based on% {REMOTE_ADDR} will do this, but I really like mod_rewrite.
users will visit test.mydomain.com and should be equivalent from one or the other DocumentRoot without seeing testa or testb in their URL, but we could register each performance option.
Any kind guru can advise?
Tia David
Update: I can configure testa.mydomain and testb.mydomain as subdomains via virtual hosts, if that helps anyone.