Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Nov 2006
    Location
    Indiana
    Posts
    192
    Plugin Contributions
    0

    Default HTTPS switches to HTTP

    Hi -

    I just had my host install my SSL cert and such, but when I checked out the login page and the shopping cart checkout I don't end up with the https in the address bar. Down at the bottom of the browser in the status bar it says https:.... but when the page actually loads it reads http. Any idea why? Configure.php is set to true for checkout...

    www.ThreeSistersFabric.com/store


    Thanks!

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: HTTPS switches to HTTP

    Please post the includes/configure.php - make sure there are no passwords.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Nov 2006
    Location
    Indiana
    Posts
    192
    Plugin Contributions
    0

    Default Re: HTTPS switches to HTTP

    Here it is - I looked it over carefully for passwords and believe I deleted anything that could be critical. Please advise if not! ;]


    <?php
    /**
    *
    * @package Configuration Settings
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    */


    /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
    /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/

    // Define the webserver and path parameters
    // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
    // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
    define('HTTP_SERVER', 'http://www.threesistersfabric.com');
    define('HTTPS_SERVER', 'https://www.threesistersfabric.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', '/store/');
    define('DIR_WS_HTTPS_CATALOG', '/store/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

    define('DIR_WS_PHPBB', '/');

    // * DIR_FS_* = Filesystem directories (local/physical)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_CATALOG', '/home/threesis/public_html/store/');

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
    define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', '');
    BLANK
    BLANK
    BLANK
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage

    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', '/home/threesis/public_html/store/cache');

    ?>

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: HTTPS switches to HTTP

    Who is your host? Do you have both an http and https directory on your server?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  5. #5
    Join Date
    Nov 2006
    Location
    Indiana
    Posts
    192
    Plugin Contributions
    0

    Default Re: HTTPS switches to HTTP

    My host is BlueHost. Yes, we do have both... There was a problem with the initail installation, but they fixed it. If you put https before my domain it seems to be working...

  6. #6
    Join Date
    Nov 2006
    Location
    Indiana
    Posts
    192
    Plugin Contributions
    0

    Default Re: HTTPS switches to HTTP

    On second thought - maybe I don't have what you were asking for.... an http and https directory.... I looked and have a public_html directory and an ssl directory. I assume that what you're looking for? Sorry for my ignorance... My current cart takes care of the ssl stuff, so this is new to me.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: HTTPS switches to HTTP

    Ask your hosting company to "symlink" your "ssl" folder to your "public_html" folder.
    With Zen Cart you don't need separate folders for SSL and non-SSL.
    .

    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.

  8. #8
    Join Date
    Nov 2006
    Location
    Indiana
    Posts
    192
    Plugin Contributions
    0

    Default Re: HTTPS switches to HTTP

    I'll give it a try.

    Thanks for the help - Ya'll are a wonderful wealth of help and info!

  9. #9
    Join Date
    Nov 2006
    Location
    Indiana
    Posts
    192
    Plugin Contributions
    0

    Default Re: HTTPS switches to HTTP

    Well my host and I are not figuring this out. So far, he says the folders are symlinked. Now he wants me to look for this:

    "It would be Global setting, configuration or something to that effect, I apologize but my mind is not recalling exactly where it is on the panel or it's exact name, but I do know it has 'Global' in it. What we are looking to do is find the option to assume https for all pages."

    Any idea where it is or what he's talking about?
    Last edited by Three Sisters; 18 Dec 2007 at 05:42 PM.

  10. #10
    Join Date
    Nov 2006
    Location
    Indiana
    Posts
    192
    Plugin Contributions
    0

    Default Re: HTTPS switches to HTTP

    It's me again. BlueHost and I worked on this all day - to no avail. They confirmed that the folders are symlinked and looked for that "Global https" switch he was talking about. We got nowhere.

    If I manually add the "s" to the address, it works. (Although the padlock is grey because of non-encrypted images, I assume.) My host says something goes wrong between the request for login.php? and the page that actually shows up as login.html.

    Any thoughts please?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. http vs https
    By jaishem in forum General Questions
    Replies: 2
    Last Post: 23 May 2011, 04:56 PM
  2. HTTPS switches to HTTP in Admin
    By richcolour in forum General Questions
    Replies: 1
    Last Post: 19 Dec 2007, 06:07 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