SSL redirect on form page

Post any questions you may have here

SSL redirect on form page

Postby deza on Thu May 22, 2008 1:08 pm

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.

Code: Select all
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:
deza
Fresh Boarder
 
Posts: 3
Joined: Wed Apr 16, 2008 7:43 pm

Re:SSL redirect on form page

Postby admin on Fri May 23, 2008 12:47 am

Hi deza,

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

try : JURI::Base()

Cheers

Max
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 4283
Joined: Mon Aug 14, 2006 5:29 am

Re:SSL redirect on form page

Postby deza on Fri May 23, 2008 12:17 pm

admin wrote: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!
deza
Fresh Boarder
 
Posts: 3
Joined: Wed Apr 16, 2008 7:43 pm

Re:SSL redirect on form page

Postby admin on Fri May 23, 2008 12:39 pm

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
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 4283
Joined: Mon Aug 14, 2006 5:29 am


Return to ChronoForms Questions & Answers

Who is online

Users browsing this forum: Google [Bot], pdenessen and 7 guests