I have created the following files:
/index.php
/address.php
/shop1/index.php
/shop1/address.php
/shop2/index.php
/shop2/address.php
/themes/theme1/header.php
/themes/theme1/body.php
/themes/theme1/footer.php
... a bit more complcated than that but you will understand my struture from the above.
The code for shop1/index.php file is:
Code: Select all
<?php
global $site_url, $site_shop;
$site_url='http://www.mysite.com';
$site_shop='shop1';
include $site_url.'/themes/theme1/header.php';
include $site_url.'/themes/theme1/page.php';
include $site_url.'/themes/theme1/footer.php';
?>Code for page.php is:
Code: Select all
... some HTML formatting
<?php
include $site_url . '/' . $site_shop . '/' $site_shop .'/address.php';
?>
... more HTML formatting
Code: Select all
... just some HTML formatting