Skip to content

Instantly share code, notes, and snippets.

@adolfoabegg
Created February 11, 2016 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adolfoabegg/f08799e493dda6641e71 to your computer and use it in GitHub Desktop.
Save adolfoabegg/f08799e493dda6641e71 to your computer and use it in GitHub Desktop.
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