Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Vendo A/B Test - Apache configuration.
# We need to add these lines to NATS' virtual host configuration
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} ^$
RewriteCond %{REQUEST_URI} track/(.*)(/.*)?$
RewriteRule ^track/(.+)(/(.+))?$ ab/vendo-ab-test.php?nats=$1 [L,NC]
RewriteCond %{QUERY_STRING} !vendoab
RewriteCond %{QUERY_STRING} nats
RewriteCond %{REQUEST_URI} signup/signup.php$
RewriteRule (.+) ab/vendo-ab-test.php?signup=1 [L,NC,QSA]
</IfModule>
#We also need to add an alias to the AB split script's folder
Alias /ab /var/www/ab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment