httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Blomstrom <>
Subject [users@httpd] Using mod-rewrite to mimic other domains
Date Thu, 31 Aug 2006 00:08:35 GMT
I have several websites with similar sections and pages, hosted on the same server (a virtual
private server). Each one is a content management system that uses mod-rewrite to display
pages like these:

Because the foundations of these websites are so similar, I'd like to find a way to combine
them into one website - though still displaying dynamic pages at the same URL's.

So, if all my scripts, includes and content were hosted on,
 is there a way to use mod-rewrite to display a page generated on under the
URL,, etc.?

I've already revised Geobop so I can now display all five websites on my computer. I simply
modify a PHP echo function at the head of my static pages. For example, if $MySite = 'Geobop',
it displays Geobop material. If $MySite = 'GeoWorld', it displays GeoWorld material.

Anyway, I can use PHP to generate dynamic URL's, like I just need
to figure out a way to use mod-rewrite to make it display at that address.


How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.
View raw message