SSL redirect on form page

deza 22 May, 2008
Hi,

i'm using chronoforms with joomla 1.5 and i need to activate ssl on the form page of my website.
I bought the SSL certificate and the https support from my hosting provider and now i'm this situation:

my "unsecure" site is on http://www.mysite.com
my secure area instead is on something like this url: https://mysitecom.secureserver.com.

If i connect to https://mysitecom.secureserver.com i get automatically redirected to the same index.php that i created on my unsecure area, but the same page index.php and all the other pages of the website now are protected with https.

Now the problem is:
if i enable SSL on the page by activating SSL from the Menu Item Edit page in the Joomla Admin Area, when i click on the menu item i get redirected to https://www.mysite.com/form_page that is not correct, because i need to be redirected to https://mysitecom.secureserver.com/form_page

How can i do it?

I tried writing this control on the index.php of the template but it doesn't work.

if($option == 'com_chronocontact'){ 
$mosConfig_live_site = 'https://mytopit.serversicuro.it/'; 
}else{ 
$mosConfig_live_site = 'http://www.mytop.it'; 
} 


Someone can help me?
Thanks.

Ps:ask me for better explainings if there's something that is not clear
pps: sorry for my english:unsure:
Max_admin 23 May, 2008
Hi deza,

You cant use $mosConfig_live_site variable because you are on J1.5

try : JURI::Base()

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
deza 23 May, 2008

Hi deza,

You cant use $mosConfig_live_site variable because you are on J1.5

try : JURI::Base()

Cheers

Max



Ok thanks for the help!:)

but i never heard about this JURI::Base(), so can you tell me how (and where) to use it to make the redirect?

Thanks!
Max_admin 23 May, 2008
its to replace the old variable at your code piece above, no idea if it will work or not, it depends on your code, it need some testing, didn't get SSL to work with the main site URL changes before🙂 i think this will be a problem although you say that the whole site is fine after switching the urls, I guess something new with J1.5, needs some testing as I said!😉

good luck!

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.