Switch between secure and non-secure server in Joomla versions 1.4 and lower.
Written by RS
September 6th, 2006
Switching between secure and non-secure servers in Joomla versions 1.4 and lower.
Step:1
This can be done in configuration.php OR in index.php just after the line define( ‘_VALID_MOS’, 1);
In configuration.php, replace
$mosConfig_live_site=”http://www.xyz.com”;
with
if ($_SERVER[”SERVER_PORT”] == “443″){
$mosConfig_live_site=”https://www.xyz.com”;
}else{
$mosConfig_live_site=”http://www.xyz.com”;
}
If modifying index.php, add these line just after the line define( ‘_VALID_MOS’, 1);
if ($_SERVER[”SERVER_PORT”] == “443″){
$mosConfig_live_site=”https://www.xyz.com”;
}else{
$mosConfig_live_site=”http://www.xyz.com”;
}
Step:2 - To secure the site after login.
In modules/mod_login.php, replace the line


Leave a Reply | Join forum for further discussion