I am trying to make sessions work across both my webservers which are load balanced. I have followed many tutorials that say to do this: RewriteRule ^(.*)$ public_html/index.php - [co=JSESSIONID:balancer.view-a:.ea-hq.com] However, when I put the extra code at the end of my redirect in .htaccess I get "Bad flag delimiters" and the internal server error page. I am using Apache 2.4 with PHP 5.4.11 on Windows. Any idea where I am going wrong?