Here is the scenario -
I have a website where customer's websites run under mine.
So as an example, my domain is www.mainsite.com and a customer's website would be www.customer1.com --- but when someone goes to customer1.com, the index.html file will redirect them to my site under www.mainsite.com/customers/index.jsp?number=1000.
An example of the index.html with a redirect to my site:
<html>
<head>
<META HTTP-EQUIV=REFRESH CONTENT="0;URL=http://www.mainsite.com/customers/index.jsp?number1000">
</head>
</html>
Is it possible to add a rewrite directive using mod_rewrite that will take the customer's domain, such as www.customer1.com and not only redirect it to my site with the variable named "number", but also mask the rest of the pages accessed thereafter?
So that it would appear to anyone browsing the site that they were "still" under customer1.com and not see mainsite.com instead?
Edit
The customer's website/domain is hosted on the same vps as my own website. My site is built on JSP pages.