Hi there,
I´m getting a bit of trouble configuring some redirections.
We have a multisite web for several white-brand customers, apache as front-end and static content server and Tomcat for the dynamic content.
The main site is www.domain.com.
Every customer has a customer.white-domain.com
When someone goes to http://customer.white-domain.com it redirects to http://www.domain.com/app-customer, that works ok.
We want to mask the redirection so if you type http://customer.white-domain.com it shows the content of http://www.domain.com/app-customer but keeping the original customer url.
My code is the following:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(.*)\.white-domain\.com [NC]
RewriteRule /(.*) http://www.domain.com/app-%1 [R,L]
With that i only get the redirection to work, missing the masking.
Thanks in advance!
Joaquín