CB Login HTTPS

13 years 3 months ago #10055 by Maarten.Provo
I tried the 'force https' option on the cbloginrc2-module. But when I login I get the message "the page could not be displayed"

Now the information with the option says this:

You may need to append to configuration.php:
[code:1]if ($_SERVER[\'SERVER_PORT\'] == \'443\') $mosConfig_live_site = str_replace(\'http://\',\'https://\',$mosConfig_live_site);', CAPTION, 'https_post', BELOW, RIGHT);[/code:1]

After adding that line to my \Mambo-root\configuration.php I get an error saying there's an unexpected ',' in the line I added and it's expecting a ']' .

I'm running Mambo 4.5.3
12 years 11 months ago #17872 by verbalkent
Same issue here, would really like to use https after reading the unencrypted login info posted here
12 years 11 months ago #18061 by beat
Maarten.Provo wrote:

I tried the 'force https' option on the cbloginrc2-module. But when I login I get the message "the page could not be displayed"

Now the information with the option says this:

You may need to append to configuration.php:
[code:1]if ($_SERVER[\'SERVER_PORT\'] == \'443\') $mosConfig_live_site = str_replace(\'http://\',\'https://\',$mosConfig_live_site);', CAPTION, 'https_post', BELOW, RIGHT);[/code:1]

After adding that line to my \Mambo-root\configuration.php I get an error saying there's an unexpected ',' in the line I added and it's expecting a ']' .

I'm running Mambo 4.5.3


code is (don't know why) displayed wrong. Should be:

[code:1]if ($_SERVER == '443') $mosConfig_live_site = str_replace('http://','https://',$mosConfig_live_site);[/code:1]

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info
Moderators: beatnantkrileon
Time to create page: 0.394 seconds
Facebook Twitter Google LinkedIn