bluemicrobyte
02-28-2006, 12:50 AM
I'm looking for a way to "mirror" folders on my website -- example:
the folder
www.mysite.com/stuff/pizza
contains 20 files.
the folder
www.addonsite.com/junk/food
should mirror the first folder --
So if a page requires/includes the file
www.addonsite.com/junk/food/file1.php
it would load the file
www.mysite.com/files/pizza/file1.php
Notes: both directories are on the same server - addonsite.com is actually located at /home/user/puplic_html/addonsite/
Why am I doing this? Because I'm trying to set up a phpbb based forum to run on two different URLs with different templates at each URL - meaning 90% of the files will be exactly the same and I modify them often - so by mirroring the second site to the first one I don't have to edit things twice. the other 10% of the files can easily be manually updated on each site seperately.
If I confused you just say so and I'll try to re-explain it. Thanks :P
the folder
www.mysite.com/stuff/pizza
contains 20 files.
the folder
www.addonsite.com/junk/food
should mirror the first folder --
So if a page requires/includes the file
www.addonsite.com/junk/food/file1.php
it would load the file
www.mysite.com/files/pizza/file1.php
Notes: both directories are on the same server - addonsite.com is actually located at /home/user/puplic_html/addonsite/
Why am I doing this? Because I'm trying to set up a phpbb based forum to run on two different URLs with different templates at each URL - meaning 90% of the files will be exactly the same and I modify them often - so by mirroring the second site to the first one I don't have to edit things twice. the other 10% of the files can easily be manually updated on each site seperately.
If I confused you just say so and I'll try to re-explain it. Thanks :P