Forums / Addon Payment Modules / Enabled SSL now Cart is adding Https to end of URL What?!

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

Locked

Started by webmyster on 16 Sep 2008, 1:28 PM · Views: 1,338

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
16 Sep 2008, 1:28 PM
#1
webmyster avatar

webmyster

New Zenner

Join Date:
Aug 2008
Posts:
20
Plugin Contributions:
0

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.au**https//**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?

16 Sep 2008, 2:08 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,691
Plugin Contributions:
0

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.

16 Sep 2008, 2:23 PM
#3
webmyster avatar

webmyster

New Zenner

Join Date:
Aug 2008
Posts:
20
Plugin Contributions:
0

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

<?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
16 Sep 2008, 2:42 PM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,890
Plugin Contributions:
20

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', '/');

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

16 Sep 2008, 4:07 PM
#5
webmyster avatar

webmyster

New Zenner

Join Date:
Aug 2008
Posts:
20
Plugin Contributions:
0

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?

17 Sep 2008, 2:49 PM
#6
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

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!

17 Sep 2008, 6:14 PM
#7
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

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!