Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2011
    Posts
    168
    Plugin Contributions
    0

    Default How to switch between http and https

    I had change the enable_ssl setting in admin\includes\configure.php:
    define('ENABLE_SSL_ADMIN', 'true');
    define('ENABLE_SSL_CATALOG', 'true');
    but there is no effect.
    clear install, no any modification.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: How to switch between http and https

    Quote Originally Posted by su35 View Post
    I had change the enable_ssl setting in admin\includes\configure.php:
    define('ENABLE_SSL_ADMIN', 'true');
    define('ENABLE_SSL_CATALOG', 'true');
    but there is no effect.
    clear install, no any modification.
    On the admin side, that is normal.


    Why are you wanting http on the admin side?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Oct 2011
    Posts
    168
    Plugin Contributions
    0

    Default Re: How to switch between http and https

    When I installed the zen cart, I have not SSL. So, I selected no SSL. Now, I install SSL and couldn't swtich the https on. All the links on admin end are http.

  4. #4
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: How to switch between http and https

    In admin/includes/configure.php

    Generally speaking with 1.5.4 and below, if SSL is to be used then each of the four HTTPx_ settings at the top of the file are to have https: in them except the "third" one. Which is typically the HTTP_CATALOG_SERVER.
    So for example:
    Code:
    define('HTTP_SERVER', 'https://your_domain.com');
    define('HTTPS_SERVER', 'https://your_domain.com');
    define('HTTP_CATALOG_SERVER', 'http://your_domain.com');
    define('HTTPS_CATALOG_SERVER', 'https://your_domain.com');
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Oct 2011
    Posts
    168
    Plugin Contributions
    0

    Default Re: How to switch between http and https

    Thanks, mc12345678. I get it!

    Another question, I set all server definition as https (2 in including and 4 in admin\including). All the internal links are https. If I manually set the https to http in the location bar and reload the page, in the admin end, url was redirected to https. However, in the frontend, page reload as http. What make the different between the backend and frontend? Does it means if I want https only, I should force to redirect in .htaccess?

 

 

Similar Threads

  1. switching back and forth between http and https
    By ajmn in forum General Questions
    Replies: 4
    Last Post: 28 Feb 2012, 02:20 AM
  2. How to redirect from http to https?
    By taogem in forum General Questions
    Replies: 4
    Last Post: 1 Sep 2010, 11:49 PM
  3. HTTP and HTTPS directory separation
    By gsdcypher in forum General Questions
    Replies: 4
    Last Post: 4 Jan 2010, 08:39 AM
  4. 2 different installs (https and http)
    By agrapha in forum Installing on a Linux/Unix Server
    Replies: 14
    Last Post: 15 Jun 2009, 02:44 PM

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