Need help with my Apache Web configuration ASAP.
We created a landing page for our site where user selects the country. Depending on selection, it will redirect to one of 2 sites, and optionally save the cookie so that next time it automatically redirects.
Also trying to set default page with no success since the ROOT request always going to my Tomcat 7 instance via ProxyPass.
Here's an excerpt of what im doing:
RewriteCond %{HTTP_COOKIE} sitePreference=([^;]+)
RewriteRule ^(.*)$ http://%1
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^US$
RewriteRule ^(.*)$ [login to view URL]$1 [L]
Need to combine these, and also pass URL parameters only when sitePreference equals a specific domain.