2006-02-10, 06:11 PM
As most of you are not aware, including a "www." in a url when entering it into your browser is a meaningless exercise (see no-www.org for specifics). So all the websites we put together will work with or without the "www.".
Even if you don't agree with the previous paragraph, the other common situation is when one uses "yourdomainname.com", "yourdomainname.org", "yourdomainname.co.uk", etc, all mapping to the same primary domain.
However, the installation script generates technically inaccurate settings - the domain name should not be hard-coded into the configuration file.
settings.php:
old:
$settings['bburl'] = "http://yourdomainname.com";
new:
$settings['bburl'] = 'http://' . $_SERVER['HTTP_HOST'];
Because of this, the second time you visit the site, you will get the message "Welcome Guest" on the homepage, then when you go to the login page, you will already be logged in.
[The change suggested above is incorrect, please see my next post below]
Even if you don't agree with the previous paragraph, the other common situation is when one uses "yourdomainname.com", "yourdomainname.org", "yourdomainname.co.uk", etc, all mapping to the same primary domain.
However, the installation script generates technically inaccurate settings - the domain name should not be hard-coded into the configuration file.
settings.php:
old:
$settings['bburl'] = "http://yourdomainname.com";
new:
$settings['bburl'] = 'http://' . $_SERVER['HTTP_HOST'];
Because of this, the second time you visit the site, you will get the message "Welcome Guest" on the homepage, then when you go to the login page, you will already be logged in.
[The change suggested above is incorrect, please see my next post below]