Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2010
    Posts
    3
    Plugin Contributions
    0

    help question How to enable SSL for the ENTIRE website?

    Hi,

    I have a SSL certificate setup and running fine with Zen Cart. The thing is I have the website split into 2 different sections...

    The normal website is for retail customers (www.mydomain.com). I then have a separate install of Zen Cart at: www.mydomain.com/trade This is meant for trade customers only.

    Due to the way the client wanted it setup they required that all trade customers would have a single username and password to log in (which is supplied to them manually). Therefore I used htaccess to password protect the /trade directory of the website.

    I use a https link for the trade section so that the login box for the trade section doesn't display a security error in IE. This all works fine, but when you log in and then click a link to a category or product the links are not using SSL (https) and thus the htaccess requires you to log in again.

    If I could change the entire zen cart installation to run under SSL it wouldn't require the double login. I realise it's not ideal to run an entire site using SSL (slowness etc) but the traffic in the trade area is likely to be absolutely minimal, so I don't think it would be a problem (the website is pretty lightweight anyway).

    Does anyone know how to do this? Basically I need all links to use https rather than http.

    Buttons I have created myself can obviously be changed pretty easily but the automated links such as categories etc all use http by default.

    Any help or advise would be greatly appreciated!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: How to enable SSL for the ENTIRE website

    Edit the 2 configure.php files and toward the top where the domain is defined as
    http and https
    Change the http entries to https
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: How to enable SSL for the ENTIRE website

    [unnecessary comment made] deleted
    20 years a Zencart User

  4. #4
    Join Date
    Feb 2010
    Posts
    3
    Plugin Contributions
    0

    Default Re: How to enable SSL for the ENTIRE website

    Quote Originally Posted by kobra View Post
    Edit the 2 configure.php files and toward the top where the domain is defined as
    http and https
    Change the http entries to https
    Hi thanks for the reply

    forgot to mention I'd already tried that:

    changed includes/configure.php to:

    Code:
    // 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://mywebsite.com/trade');
      define('HTTPS_SERVER', 'https://mywebsite.com/trade');
    
      // Use secure webserver for checkout procedure?
      define('ENABLE_SSL', 'true');
    and changed admin/includes/configure.php to:

    Code:
    * If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following:
       */
      define('HTTP_SERVER', 'https://mywebsite.com/trade');
      define('HTTPS_SERVER', 'https://mywebsite.com/trade');
      define('HTTP_CATALOG_SERVER', 'https://mywebsite.com/trade');
      define('HTTPS_CATALOG_SERVER', 'https://mywebsite.com/trade');
    
      // Use secure webserver for catalog module and/or admin areas?
      define('ENABLE_SSL_CATALOG', 'true');
      define('ENABLE_SSL_ADMIN', 'true');
    And still after that the category links etc are all still http

  5. #5
    Join Date
    Feb 2010
    Posts
    3
    Plugin Contributions
    0

    Default Re: How to enable SSL for the ENTIRE website

    anyone got any ideas on this one?

  6. #6
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: How to enable SSL for the ENTIRE website

    If you are using a Login box on the website then remove that from the column, which will force everyone to use the standard login link.

    Vger

 

 

Similar Threads

  1. v150 Problems after we changed our entire website over to SSL
    By aiko70 in forum All Other Contributions/Addons
    Replies: 17
    Last Post: 8 Mar 2013, 03:42 PM
  2. How to enable SSL for shopping cart page?
    By boomup in forum General Questions
    Replies: 2
    Last Post: 21 Jan 2012, 07:13 AM
  3. How to enable SSL for the whole site during customers log in?
    By akidworld in forum Installing on a Linux/Unix Server
    Replies: 27
    Last Post: 8 Apr 2010, 04:49 AM
  4. how to center entire website?
    By sfklaas in forum General Questions
    Replies: 12
    Last Post: 24 Aug 2008, 05:24 AM
  5. Duplicating the entire website - simplest way?
    By bodyjewelrystores in forum General Questions
    Replies: 1
    Last Post: 29 Apr 2008, 08:51 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