al9
November 8, 2010, 3:28am
1
I’m looking for simple solution for multisite.
I have few domains like site1.com , site2.com , site3.com etc. All I want is to use one PHP script for all he websites.
I’ve trid to use apache’s rewrite for that, but it doesn’t work:
RewriteRule ^index.html$ /home/site1/www/index.php
What will be another simple solution for that?
Hi al9, can you construct the path or put the domain name in a variable?
$site = ‘site1’;
$path = ‘/home/’ . $site . ‘/www/’;
Something like that?
Do you have several domains under the same directory, like
/home/site1/www/
/home/site2/www/
/home/site3/www/
/home/site4/www/
and you want one script to do something in all four sites?
Sorry if I’m not understanding exactly what you need.
Are the sites all contained within the same server? If not, the only way to do this without opening a giant security hole in your servers is to have a copy of the script on each server.
rpkamp
November 8, 2010, 10:50pm
4
You asked this very question here: http://www.sitepoint.com/forums/showthread.php?t=711477
And it was solved there.
Thread closed.