Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Apr 2010
    Posts
    102
    Plugin Contributions
    0

    Default Problem with SSL

    I started building my site without SSL Certificate and I was able to build and run the site without any problem.

    Since I was getting ready to go live, I purchased a dedicated SSL certificate from my hosting company and got it installed. The certificate is issued for "shinypetstore.com" and not "www.shinypetstore.com".

    I followed the recommendation from tutorial and made the following changes to my config.php files as follow:

    For include directory I changed the following:

    define('HTTP_SERVER', 'http://www.shinypetstore.com');
    define('HTTPS_SERVER', 'https://shinypetstore.com');

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'true');

    and for admin/include directory I changed the following:

    define('HTTP_SERVER', 'http://www.shinypetstore.com');
    define('HTTPS_SERVER', 'https://shinypetstore.com');
    define('HTTP_CATALOG_SERVER', 'http://www.shinypetstore.com');
    define('HTTPS_CATALOG_SERVER', 'https://shinypetstore.com');
    define('ENABLE_SSL', 'true');

    // Use secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'true');
    define('ENABLE_SSL_ADMIN', 'true');

    Now, when I type either www.shinypetstore.com or shinypetstore.com I get redirected to https://shinypetstore.com and everything looks good. However, when I try to add a product to cart or under admin I try to make a change I get this error message:

    "Although this page is encrypted, the information you have entered is to be sent over an unencrypted connection and could easily be read by a third party.

    Are you sure you want to continue sending this information?"

    and the system ignores my changes!

    What am I doing wrong? Do I need to make additional changes?

    I appreciate your help.

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Problem with SSL

    Your includes/configure.php should look like this

    // 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', 'http://www.shinypetstore.com');
    define('HTTPS_SERVER', 'https://shinypetstore.com');

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'true');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '/');
    and the corresponding admin/includes/configure.php

    define('HTTP_SERVER', 'http://www.shinypetstore.com');
    define('HTTPS_SERVER', 'https://shinypetstore.com');
    define('HTTP_CATALOG_SERVER', 'http://www.shinypetstore.com');
    define('HTTPS_CATALOG_SERVER', 'https://shinypetstore.com');

    // Use secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'true');
    define('ENABLE_SSL_ADMIN', 'true');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_ADMIN', '/Your_Admin/');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_ADMIN', '/Your_Admin/');
    define('DIR_WS_HTTPS_CATALOG', '/');
    make sure to set permissions to 644 before making changes and back to 444 after you are done

    If this does not fix it then your host may have enabled a permanent redirection from http to https. That is not desirable.
    Last edited by frank18; 30 May 2010 at 12:36 AM.

  3. #3
    Join Date
    Apr 2010
    Posts
    102
    Plugin Contributions
    0

    Default Re: Problem with SSL

    Thanks Frank,

    This is exactly what I have!

    So, do I need to ask them stop redirecting http to https?

  4. #4
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Problem with SSL

    Quote Originally Posted by ak6000 View Post
    Thanks Frank,

    This is exactly what I have!

    So, do I need to ask them stop redirecting http to https?
    If you have cPanel on your server you may be able to stop that redirection yourself. If not then you need to check with your host if they have set up a redirection for the whole site to be https.

    Zencart is smart enough to only use SSL connections for specific sensitive pages like login, create account, checkout pages, admin login etc.

    Any other pages should only be called as Non-SSL.

    To achieve this you have made the necessary changes in the 2 configure.php files (and they look ok to me )

    In my opinion your host did not install or configure your cert correctly.

  5. #5
    Join Date
    Apr 2010
    Posts
    102
    Plugin Contributions
    0

    Default Re: Problem with SSL

    Frank,

    You were right on money!

    I found that they have added a redirect to .htaccess that was forcing http to https. Removed it and everything is working perfectly.

    Thanks so much for your expert advice.

  6. #6
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Problem with SSL

    Quote Originally Posted by ak6000 View Post
    Frank,

    You were right on money!

    I found that they have added a redirect to .htaccess that was forcing http to https. Removed it and everything is working perfectly.

    Thanks so much for your expert advice.
    I'm not an 'expert' by any means but love to help where I can

 

 

Similar Threads

  1. Problem with SSL
    By JQPublic in forum General Questions
    Replies: 27
    Last Post: 10 Oct 2010, 02:58 PM
  2. problem with SSL
    By ner0tik in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 29 Oct 2007, 02:12 AM
  3. Problem with SSL
    By a4tech in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 16 Jul 2007, 11:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg