5
To avoid problems with internal links/references to the site (like to image files), there should be no space in the URL definitions within mainfile.php, i.e. no space between the "https:" (or "http:") part and the "//www.example.org" part.
== so it should look like this:
$port = $HTTP_SERVER_VARS['SERVER_PORT'];
if($port == "443"){
define('XOOPS_URL', 'https://www.example.org');
} else {
define('XOOPS_URL', 'http://www.example.org');
}
== instead of the original above, which is:
$port = $HTTP_SERVER_VARS['SERVER_PORT'];
if($port == "443"){
define('XOOPS_URL', 'https: //www.example.org');
} else {
define('XOOPS_URL', 'http: //www.example.org');
}