Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2008
    Posts
    20
    Plugin Contributions
    0

    Default Enabled SSL now Cart is adding Https to end of URL What?!

    I followed the tute found https://www.zen-cart.com/tutorials/index.php?article=14

    Now evertime it gets to a section which requires SSL it for some reason adds http to the end of the URL like this:

    https://www.MYSITEHERE.com.auhttps//index.php?main_page=checkout_shipping

    Any idea why that in the bold is being placed there making the link invalid.

    Also when im in https mode no images show up how do i change all the http to https globally?

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

    Default Re: Enabled SSL now Cart is adding Https to end of URL What?!

    Please post your includes/configure.php without your 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
    Aug 2008
    Posts
    20
    Plugin Contributions
    0

    Default Re: Enabled SSL now Cart is adding Https to end of URL What?!

    Code:
    <?php
    /**
     * @package Configuration Settings circa 1.3.8
     * @copyright Copyright 2003-2007 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.your_domain.com
      // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
      define('HTTP_SERVER', 'http://www.xxxxxxxxxxxxxxx.com.au');
      define('HTTPS_SERVER', 'https://www.xxxxxxxxxxxxxxx.com.au');
    
      // 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', 'https://');
    
      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/wyvpkjsz/public_html/xxxxxxxxxxx.com.au/');
    
      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', '');
      define('DB_SERVER', 'localhost');
      define('DB_SERVER_USERNAME', 'XXXXXXX);
      define('DB_SERVER_PASSWORD', 'XXXXXXXX');
      define('DB_DATABASE', 'XXXXXXXX');
      define('USE_PCONNECT', 'false');
      define('STORE_SESSIONS', 'db');
      // for STORE_SESSIONS, 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/wyvpkjsz/public_html/xxxxxxxxx.com.au/cache');
    
    // EOF

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,691
    Plugin Contributions
    11

    Default Re: Enabled SSL now Cart is adding Https to end of URL What?!

    // 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', 'https://');
    That in red should be /

    and make sure that the config in the admin is
    // 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', '/admin/');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_ADMIN', '/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/');
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  5. #5
    Join Date
    Aug 2008
    Posts
    20
    Plugin Contributions
    0

    Default Re: Enabled SSL now Cart is adding Https to end of URL What?!

    Wow thanks that worked a charm!

    One last question what CHMOD is the admin/includes/config.php suppose to be?

  6. #6
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Enabled SSL now Cart is adding Https to end of URL What?!

    admin/includes/config.php should be 644
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  7. #7
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Enabled SSL now Cart is adding Https to end of URL What?!

    To expand upon my last, for clarity for others.

    644 or 444 depending on the server and if 444 be sure when trying to update that file to set to 644 or higher, or delete the old file, to be able to overwrite with the new updated file ...

    This applies to the includes/configure.php as well. On the servers I am most familiar with the includes/configure.php needs to be 444 or it will throw an error on the catalog side about the file being writable. Whereas the admin/includes/config.php can be set to 644 on the same servers
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

 

 

Similar Threads

  1. Enabled SSL, now get error 404
    By Euonym in forum General Questions
    Replies: 4
    Last Post: 14 Sep 2010, 09:54 PM
  2. SSL Enabled but need to oredirest to https
    By meetsubhajit in forum Customization from the Admin
    Replies: 3
    Last Post: 19 Feb 2009, 11:21 PM
  3. Enabled SSL now store doesn't show
    By rfresh in forum General Questions
    Replies: 16
    Last Post: 12 Jan 2009, 05:45 AM
  4. SSL Enabled but product pages not under https
    By divalyn in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 14 May 2008, 03:17 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