In order to test if a new design is going to be useful, we're doing A/B testing on it. However, the design integrates a large number of files so we don't want to have to keep moving them around.
Is it possible to use mod_rewrite to mask the fact that we've moved both into their own subdirs?
In other words, someone visits http://www.ourdomain.com/ and they see the design located in "public_html/old/" or "public_html/new/" depending on which we have set to show in .htaccess. However, they never know the designs are in subdirs.
Ok! After you've moved both into their subdirs, you can do something like this:
You can trigger off of anything that
mod_rewrite
can see. For cookies, swap this in for the part underHere's where we'll handle the logic.
above:Or
GET
request query parameters:Or for both..
Randomized..
And set up the
/var/www/map.txt
file with these contents:Random is a lot more complicated, and I might have missed something.. let me know if it breaks.