Dynamic mirror site (2 domains same content)

767 Views Asked by At

There is my problem: I have a forum (creating with SMF engine), that is a dynamic website.

I want to make an other website (with an other domain), with exactly the same content, except some details (like the <title> content and the css sheets). But it has to work dynamically too: the two forum must be one, with the same content at the same time.

I'm a bit loss, and I'm not sure I'm aware of all tools maybe I have. Can I do that in a simple way (like a simple generated php script or something), or is it going to be more complicated?

1

There are 1 best solutions below

0
On BEST ANSWER

Set up the same DNS and have the exact same content, then have 2 style sheets, and using PHP:

$domain = $_SERVER['SERVER_NAME'];

if($domain == "domain1") {
    echo "stylesheet1";
}else{
    echo "stylesheet2";
}

And this should be the same for anything else you want different.