Hi

Say you have 2 virtual hosts set up and one of them runs your main website. On 
the other virtual host you want to run a "branded" (ie: differently styled, 
using CSS) version of the main website.

Rather than copying all the content from your main web over to the branded 
version (since that would then mean if you want to change some text on a page 
you'd have to do it in two places) is there a way for the branded site to pull 
in the (in this case) PHP files and some of the images from the main site yet 
make them appear to be coming from the branded site?

Example 1: image on main website is located at 
http://www.mainsite.com/images/photo.jpg and you want to display it on your 
branded site aswell but make the SRC link look like this: 
http://www.brandedsite.com/images/photo.jpg 

Example 2: You have a FAQ page on the main site 
(http://www.mainsite.com/faq.php) and you want to have it on the branded site 
too (http://www.brandedsite.com/faq.php). You want to pull the FAQ page from 
mainsite, apply the CSS from your branded site to change the logos and colours 
and display it as http://www.brandedsite.com/faq.php

This is the first time I've done anything like this. I'm pretty sure you can do 
this sort of thing with content management systems, but we'd rather not go down 
that route and presumably content managements systems use some underlying 
features of Apache and virtual hosts to achieve this, so that's what I'd like 
to find out about.

Any help or pointers greatly appreciated.

Spencer

Reply via email to