Digg del.icio.us

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

” method=”post” name=”login” >
with

” method=”post” name=”login” >

Step:3 - To go back to http after logout.
In modules/mod_login.php, replace the line

” method=”post” name=”logout”>
with

” method=”post” name=”logout”>

powered by performancing firefox

AddThis Social Bookmark Button

Leave a Reply | Join forum for further discussion

Open Source Business Application Network [ Apptility | OpenAppDotOrg | MigrateForce | Ajuby | About ]

Copyright © 2004-2007 Apptility LLC. All rights reserved. Various trademarks held by their respective owners.

Privacy Statement  | Terms Of Service