Hi All,
I have a site that I have just moved form an Apache1.x server to Apache 2.
The site allows visitors to create minisites in the format of:
http://myname.sitedomain.com/
http://myname.sitedomain.com/about/
etc
this is then mapped to:
http://www.sitedomain.com/sites/index.php?id=myname§ion=about
while the URL remains the same in the browser.
I had all this working for the past 6 yearsunder Apache 1.3 with the following lines in my vhost config:
RewriteCond %{http_host} !^www\. [NC]
RewriteCond %{http_host} ^(.*)\.islandbrides\.com [NC]
RewriteRule ^/(.*) http://www.islandbrides.com/sites/index.php?ref=%1§ion=$1 [L]
Since moving to Apache 2, the rewrite is actually redirecting to the mapped URL in the browser, rather than mapping it silently and retaining the original URL
This means that all forms (using POST) are breaking as the post data is lost in the redirect, and all links are now incorrect within the mini sites.
I've scoured goole for the past 6 hours to no avail.
Can anyone help me figure out why apache 2 is handling this differently and how to fix it?
Ben