Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2005
    Posts
    165
    Plugin Contributions
    0

    Default SSL and htaccess problem

    URL: www.orientalenterprises.ca
    PHP version 7.1

    Problem:
    I enabled SSL on this site. Changed the config files (includes and admin/includes) for https, and SSL true.
    htaccess was renamed as .htaccess

    When I check the site, it shows https . When I try to add some products into the cart, it does not add.
    I renamed .htaccess to htaccess.txt.
    After refreshing the page, https does not show on internal pages but the products are getting added into the cart.

    The htaccess file is attached.

    Please help with the solution.
    Attached Images Attached Images
    http://www.raunharman.com
    http://www.raunharman.net
    Website Development, E-Book Solutions & Handicraft Exports

  2. #2
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,505
    Plugin Contributions
    20

    Default Re: SSL and htaccess problem

    Your configure.php lines should both be https, like:
    PHP Code:
    define('HTTP_SERVER''https://your_domain.com');
    define('HTTPS_SERVER''https://your_domain.com');
    /** *  If you want to tell Zen Cart to use your HTTPS URL on sensitive pages like login and checkout, set this to 'true'. Otherwise 'false'. (Keep the quotes) */
    define('ENABLE_SSL''true'); 
    You should also change the name of your admin folders, and development folders, as you have made them public through the attached pdf

  3. #3
    Join Date
    Dec 2005
    Posts
    165
    Plugin Contributions
    0

    Default Re: SSL and htaccess problem

    Thanks. It worked.
    http://www.raunharman.com
    http://www.raunharman.net
    Website Development, E-Book Solutions & Handicraft Exports

  4. #4
    Join Date
    Jan 2012
    Posts
    3
    Plugin Contributions
    0

    Default Re: SSL and htaccess problem

    I am using these exact settings in both the config files (includes and admin/includes) but my shop is still serving mixed content because of the URL being built for the images. How can I get rid of this?
    https://www.intertwinedswine.com/zencart/

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    7,758
    Plugin Contributions
    64

    Default Re: SSL and htaccess problem

    Check your template's stylesheet.css; it's pulling in background images using http:// protocol.

  6. #6
    Join Date
    Jan 2012
    Posts
    3
    Plugin Contributions
    0

    Default Re: SSL and htaccess problem

    THANK YOU!! You're right, I completely forgot about the Zencart stylesheets (it has been years since I made them). I replaced all https this morning and didn't even realize I had changed those files, too. Uploaded them and now it all works. Thanks so much.

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    7,758
    Plugin Contributions
    64

    Default Re: SSL and htaccess problem

    No problem, I'm happy to have helped.

 

 

Similar Threads

  1. v151 Changes in .htaccess and SSL
    By Olga in forum General Questions
    Replies: 4
    Last Post: 3 Apr 2014, 04:09 PM
  2. .htaccess rewrite with folders and Private SSL?
    By littlehawk in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 14 Sep 2009, 07:10 PM
  3. ssl www and htaccess question/prob
    By Sckwooral in forum General Questions
    Replies: 1
    Last Post: 27 Jun 2008, 09:25 PM
  4. Completely confused about htaccess and SSL
    By GrandmaJ in forum General Questions
    Replies: 9
    Last Post: 22 May 2007, 01:01 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR