Zen Cart Logo
Forums / General Questions / SSL Problem

SSL Problem

Views: 1,546

Results 1 to 14 of 14
23 Sep 2014, 5:58 PM
#1
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

SSL Problem

I have an SSL via GoDaddy.
If I enter my address https:tennesseetraditionalflies.com it starts the https:/tennesseetraditionalflies.com

I added the following in my configure.php files
// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
define('HTTP_SERVER', 'https://tennesseetraditionalflies.com');
define('HTTPS_SERVER', 'https://tennesseetraditionalflies.com');

However the http:tennesseetraditionalflies.com does not go to https:tennesseetraditionalflies.com

Does anyone have any ideas what is causing this?

Feel free to take a look at the website.

23 Sep 2014, 6:19 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,786
Plugin Contributions:
13

Re: SSL Problem

Is this in the includes/configure.php or the YOUR_ADMIN/includes/configure.php? Not a good idea to have them both https: in the catalog.

What have you answered for the> // Use secure webserver for checkout procedure?

define('ENABLE_SSL', 'true');

Everything seems to be working correctly in the catalog.

23 Sep 2014, 10:32 PM
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: SSL Problem

The other thing to realize is that ZC is coded to use the applicable HTTPS_SERVER setting at the point(s) where such would be necessary like login, financial information, etc... I understand that https: has been applied possibly to the HTTP_SERVER constant both store and admin side, but generally speaking there is no reason to have the entire store securely served.

30 Sep 2014, 11:19 AM
#4
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: SSL Problem

Yes that code is in the configure.php

30 Sep 2014, 11:20 AM
#5
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: SSL Problem

Are you telling that it is functioning properly?

30 Sep 2014, 11:22 AM
#6
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: SSL Problem

GoDaddy SEO reports that it is not protected and it displays all of the http pages as not using SSL.

30 Sep 2014, 11:52 AM
#7
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: SSL Problem

Your site is operating properly. Only those pages which require SSL have it. If GoDaddy is looking for SSL on all pages, they don't understand how Zencart works.

30 Sep 2014, 12:17 PM
#8
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: SSL Problem

It appears that putting the defines in the configure.php only work on a Windows server. On a Linux server you need to put the redirect in the .HTACCESS file. Refer to the GoDadday article below.

https://support.godaddy.com/help/article/8828/automatically-redirecting-visitors-to-https?locale=en&ci=46061

After making the changes it works now.

30 Sep 2014, 1:23 PM
#9
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: SSL Problem

Actually, it doesn't. Having the entire site operate under SSL isn't necessary or useful, regardless of what Google is saying. As mentioned, Zencart automatically secures those pages which need it, no redirects needed.

30 Sep 2014, 3:33 PM
#10
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: SSL Problem

A little offtopic, but......

stevesh:

Having the entire site operate under SSL isn't necessary or useful, regardless of what Google is saying.

Much to my chagrin, I recently read somewhere that Google have plans to give SSL enabled sites higher rankings than non-SSL sites.

Has anyone else heard about this?

Cheers
RodG

30 Sep 2014, 4:27 PM
#11
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: SSL Problem

jodean:

It appears that putting the defines in the configure.php only work on a Windows server. On a Linux server you need to put the redirect in the .HTACCESS file. Refer to the GoDadday article below. ...
This is not true. No modification of the .htaccess file is required to enable SSL for Zen Cart. If you want to override the wisely created default of only using SSL when necessary and allowing SSL for any page... And instead always use SSL... Just update your configure.php files (set both HTTP and HTTPS prefixes to "https://mysite.com/").

Forcing SSL for all pages is not recommended, and Zen Cart makes all pages available via SSL by default (as long as SSL is configured correctly on the server and in the settings).

Additionally using a forced "redirect" such as stated in that article can potentially result in lost data (post data is not resent by most browsers when a encountering a "redirect"). While it is rare for POST data to be sent with a non SSL request, some 3rd party add-ons and software have been known to use FORMs pointing to non-SSL URLS.

30 Sep 2014, 4:44 PM
#12
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: SSL Problem

RodG:

A little offtopic, but......

Much to my chagrin, I recently read somewhere that Google have plans to give SSL enabled sites higher rankings than non-SSL sites.

Has anyone else heard about this?

Cheers
RodG

Yup - that was the article/blog post I was referring to. It didn't explain why Google thought that was the thing to do. The tone was that securing every site is a self-evident good idea. I'm not seeing it myself.

30 Sep 2014, 5:03 PM
#13
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: SSL Problem

The forum won't let me post a link. Here's the text of the post:

HTTPS as a ranking signal
Posted: Wednesday, August 06, 2014

Webmaster level: all

Security is a top priority for Google. We invest a lot in making sure that our services use industry-leading security, like strong HTTPS encryption by default. That means that people using Search, Gmail and Google Drive, for example, automatically have a secure connection to Google.

Beyond our own stuff, we’re also working to make the Internet safer more broadly. A big part of that is making sure that websites people access from Google are secure. For instance, we have created resources to help webmasters prevent and fix security breaches on their sites.

We want to go even further. At Google I/O a few months ago, we called for “HTTPS everywhere” on the web.

We’ve also seen more and more webmasters adopting HTTPS (also known as HTTP over TLS, or Transport Layer Security), on their website, which is encouraging.

For these reasons, over the past few months we’ve been running tests taking into account whether sites use secure, encrypted connections as a signal in our search ranking algorithms. We've seen positive results, so we're starting to use HTTPS as a ranking signal. For now it's only a very lightweight signal — affecting fewer than 1% of global queries, and carrying less weight than other signals such as high-quality content — while we give webmasters time to switch to HTTPS. But over time, we may decide to strengthen it, because we’d like to encourage all website owners to switch from HTTP to HTTPS to keep everyone safe on the web.

Lock

In the coming weeks, we’ll publish detailed best practices (it's in our help center now) to make TLS adoption easier, and to avoid common mistakes. Here are some basic tips to get started:

Decide the kind of certificate you need: single, multi-domain, or wildcard certificate
Use 2048-bit key certificates
Use relative URLs for resources that reside on the same secure domain
Use protocol relative URLs for all other domains
Check out our Site move article for more guidelines on how to change your website’s address
Don’t block your HTTPS site from crawling using robots.txt
Allow indexing of your pages by search engines where possible. Avoid the noindex robots meta tag.

If your website is already serving on HTTPS, you can test its security level and configuration with the Qualys Lab tool. If you are concerned about TLS and your site’s performance, have a look at Is TLS fast yet?. And of course, if you have any questions or concerns, please feel free to post in our Webmaster Help Forums.

We hope to see more websites using HTTPS in the future. Let’s all make the web more secure!

30 Sep 2014, 5:52 PM
#14
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: SSL Problem

stevesh:

The forum won't let me post a link. Here's the text of the post:

HTTPS as a ranking signal
Posted: Wednesday, August 06, 2014

It's not the same article I read... This one provides a little more info.

At least I wasn't imagining what I'd seen.

Cheers
RodG