OnlyBlue:
Thanks, Gerome!
It seems that the sites work well after applying the patch, but the Documents sidebox disappeared. Is it right?:huh:
The sidebox disappears because there is no document to display for the site. This is the normal behavior of this sidebox.
OnlyBlue:
I have also another suggestion:
In the step 4 of the MultiSite Module Instructions, we'd better create not only the www.site1.com_config.php but also the site1.com_config.php. Otherwise, if we use site1.com to browser the site, we would meet a error :
As for multi domains issues, I use .htaccess in order to resolve this problem because I think it makes things cleaner.
Add the the beginning of your htacess:
#Redirect all *site2.com and site2.net to https://www.site2.com
RewriteCond %{HTTP_HOST} site2.com$ [OR]
RewriteCond %{HTTP_HOST} site2.net$
RewriteCond %{HTTP_HOST} !^www.site2.com$
RewriteRule ^(.)$ http://www.site2.com/$1 [L,R=301]
This is what is used for bigdepot.co.uk:
http://ww.bigdepot.co.uk/scratchless-cd-c-3377.html
http://bigdepot.co.uk/scratchless-cd-c-3377.html
http://anything.bigdepot.co.uk/scratchless-cd-c-3377.html
http://www.bigdepot.com/scratchless-cd-c-3377.html
All are redirected to that link, with a similar .htaccess code.
http://www.bigdepot.co.uk/scratchless-cd-c-3377.html
For these who don't want to bother with it, there is other this way:
into the site1.com_config.php:
includes('includes/config_sites/www.site1.com_config.php');
Another way to do it would be to put that in the site1.com_config.php:
header('HTTP/1.1 301 Moved Permanently');
header('Location: http://www.site1.com'.$_SERVER['REQUEST_URI']);
Note: I never tried this one, but it should have a similar effect that the .htaccess code. Warning: I think that, for some servers, $_SERVER['REQUEST_URI'] has a different name...
Soon, I'll go though this thread and I'll make a FAQ with all the helps that has been given ...
Hope it helps!