Forums / Basic Configuration / SSL is on, but http:// login page does not redirect to https://

SSL is on, but http:// login page does not redirect to https://

Started by jackie_taferner on 9 Jan 2010, 2:35 AM · Views: 12,596

Results 1 to 18 of 18
9 Jan 2010, 2:35 AM
#1
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

SSL is on, but http:// login page does not redirect to https://

I have SSL turned on in both configure files, and all of my shopping cart and login pages appear to redirect properly to the https:// pages.

BUT if I specifically type in http://www.mystore.com/index.php?main_page=login it does not redirect to the https:// version of the page. This is causing a PCI compliance error.

Any thoughts what could cause this problem?

Thanks!
:bigups:

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

9 Jan 2010, 2:53 AM
#2
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

Re: SSL is on, but http:// login page does not redirect to https://

Its the same for me, but the form sends the information to the secure link. That should be fine. So its not a problem as you said. I guess you can change the code and redirect always to the secure page for the login. Maybe in you htaccess file that would be the easiest as you dont have to change code.

9 Jan 2010, 3:05 AM
#3
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: SSL is on, but http:// login page does not redirect to https://

i suppose it shouldn't be a problem. but PCI compliance scanner is still giving errors for it :(

do you have an example code that should be put into htaccess?

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

15 Jan 2010, 11:52 PM
#4
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: SSL is on, but http:// login page does not redirect to https://

Apparently it's a false positive from the PCI scanner... so we'll be awaiting the results once more and have another go at it.

wish me luck :)

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

23 Feb 2010, 5:31 PM
#5
anbuallinone avatar

anbuallinone

New Zenner

Join Date:
Dec 2009
Posts:
12
Plugin Contributions:
0

Re: SSL is on, but http:// login page does not redirect to https://

Hello there, I am going through the same problem. I want to redirect the unsecure login page to ssl login page.
could you please tell me what i am supposed to code in htaccess file?

Many thanks in advance

23 Feb 2010, 5:35 PM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,722
Plugin Contributions:
0

Re: SSL is on, but http:// login page does not redirect to https://

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

23 Feb 2010, 6:42 PM
#7
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: SSL is on, but http:// login page does not redirect to https://

Hello Kim,

Thank you for the reply. But the SSL is already turned on, as instructed in that tutorial.

The issue is that after running a PCI scan, the site has failed becuase they were able to hack and get to the login page without using the https://

ie, if you type in the login URL directly into the address bar, using http:// it will allow you to get there, instead of forwarding you along to https://

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

23 Feb 2010, 7:07 PM
#8
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,722
Plugin Contributions:
0

Re: SSL is on, but http:// login page does not redirect to https://

The issue is that after running a PCI scan, the site has failed becuase they were able to hack and get to the login page without using the https://

ie, if you type in the login URL directly into the address bar, using http:// it will allow you to get there, instead of forwarding you along to https://

Why should they care? A real customer is never going to change the URL and the information is still sent via HTTPS when it is submitted.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

24 Feb 2010, 12:47 AM
#9
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: SSL is on, but http:// login page does not redirect to https://

I agree, why should they care... but they do, and if it's not fixed my website does not pass PCI compliance.

What can i do to fix this?

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

25 Feb 2010, 11:59 AM
#10
anbuallinone avatar

anbuallinone

New Zenner

Join Date:
Dec 2009
Posts:
12
Plugin Contributions:
0

Re: SSL is on, but http:// login page does not redirect to https://

Kim:

https://www.zen-cart.com/tutorials/index.php?article=14

Kim,

Many thanks for your reply. i did have a look at the tutorial before i posted my previous message. in fact that is how is learnt how to turn on ssl. the trouble i got now is that, when i go to admin login page the ssl is on but when click on Log in page in the site (as a customer) it is not diverting to*** https**://iwantthattoy.co.uk/index.php?main_page=login* instead it remains as
http://iwantthattoy.co.uk/index.php?main_page=login

Help please!

25 Feb 2010, 1:19 PM
#11
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: SSL is on, but http:// login page does not redirect to https://

what compliance scanner are you using?
we have MANYYYYYYYY users that have passed their PCI Compliance scans without this issue

Zen cart PCI compliant Hosting

10 Jun 2010, 8:30 PM
#12
northfork avatar

northfork

New Zenner

Join Date:
Oct 2004
Location:
Montana
Posts:
43
Plugin Contributions:
0

Re: SSL is on, but http:// login page does not redirect to https://

Some customers also look at the address bar to see if they are on an https site. I know I do.

So, it's pretty easy to change the customer login URL to https

in includes\templates\your-template\sideboxes\tpl_shopping_cart.php find the line

<a href="<?=HTTP_SERVER.DIR_WS_CATALOG?>index.php?main_page=login">Login</a>

and change the HTTP to HTTPS

<a href="<?=HTTPS_SERVER.DIR_WS_CATALOG?>index.php?main_page=login">Login</a>

10 Jun 2010, 8:34 PM
#13
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,722
Plugin Contributions:
0

Re: SSL is on, but http:// login page does not redirect to https://

Changing the code is NOT the way to do things - you need to get your HTTP and HTTPS working correctly and Zen Cart will make the switch automatically when it is needed.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

10 Jun 2010, 8:37 PM
#14
northfork avatar

northfork

New Zenner

Join Date:
Oct 2004
Location:
Montana
Posts:
43
Plugin Contributions:
0

Re: SSL is on, but http:// login page does not redirect to https://

But, the customer login page is not https, and this will affect conversion rates. What do you suggest?

4 Jan 2011, 5:04 AM
#15
hovsepations avatar

hovsepations

New Zenner

Join Date:
Sep 2008
Location:
Toronto
Posts:
35
Plugin Contributions:
0

Re: SSL is on, but http:// login page does not redirect to https://

i have the same issue, i followed all the instructions in the tutorial to enable ssl, and ssl is correctly installed i checked with the hosting provider and the ssl provider but the login page and the admin area doesn't go to https automatically. When i type in https myself it works just fine but not when the customer clicks on login.

Did anyone fine the solution for this problem??

25 Apr 2011, 11:51 PM
#16
rugersmum avatar

rugersmum

New Zenner

Join Date:
Mar 2011
Posts:
37
Plugin Contributions:
0

Re: SSL is on, but http:// login page does not redirect to https://

Hi I can t see there was ever asolution to this is there one that I can try I have soent hours transferring my store to another hosting so I could have SSL cert and now the damn thing dosnt work - I have folllowed thed the tut and changet the 3 config files but it doent seem to want to work when I click in login it goes to http not https

any advice Please
Chrissie

keepsakes-by-design.co.uk

26 Apr 2011, 10:15 AM
#17
piwanek avatar

piwanek

New Zenner

Join Date:
May 2006
Posts:
14
Plugin Contributions:
0

Re: SSL is on, but http:// login page does not redirect to https://

rugersmum:

Hi I can t see there was ever asolution to this is there one that I can try I have soent hours transferring my store to another hosting so I could have SSL cert and now the damn thing dosnt work - I have folllowed thed the tut and changet the 3 config files but it doent seem to want to work when I click in login it goes to http not https

any advice Please
Chrissie

keepsakes-by-design.co.uk

There is no solution for my issue. My host has a server setup that doesnt allow communication with Zencart. According to my host it's "a Zencart problem".

When I told them that I have never had this problem before, setting up probably close to 15 ZenCart shops, they just ignored me.

What I had to do was manually hardcode all the SSL pages.

// Peter

16 Jun 2011, 3:53 PM
#18
srlaird avatar

srlaird

New Zenner

Join Date:
May 2010
Posts:
74
Plugin Contributions:
0

Re: SSL is on, but http:// login page does not redirect to https://

My admin login was going to https just fine, but the customer login link was going to http, rather than https, even though I had set both configure.php files according to the zen tutorial.

Using the file manager on my host system, I found that the file permission on the includes/configure.php file was set to read only (444). I set it to 644 for read/write, uploaded the configure.php file again. Problem solved. Then I changed it back to read only (444).

I hope this helps someone. :D