Zen Cart Logo
Forums / General Questions / HTTPS switches to HTTP

HTTPS switches to HTTP

Locked

Views: 1,688

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
17 Dec 2007, 11:17 PM
#1
three_sisters avatar

three_sisters

Zen Follower

Join Date:
Nov 2006
Location:
Indiana
Posts:
188
Plugin Contributions:
0

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...

https://www.ThreeSistersFabric.com/store

Thanks!

17 Dec 2007, 11:47 PM
#2
Kim avatar

Kim

Obaa-san

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

Re: HTTPS switches to HTTP

Please post the includes/configure.php - make sure there are no passwords.

18 Dec 2007, 2:44 AM
#3
three_sisters avatar

three_sisters

Zen Follower

Join Date:
Nov 2006
Location:
Indiana
Posts:
188
Plugin Contributions:
0

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'); ?>
18 Dec 2007, 2:46 AM
#4
Kim avatar

Kim

Obaa-san

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

Re: HTTPS switches to HTTP

Who is your host? Do you have both an http and https directory on your server?

18 Dec 2007, 3:02 AM
#5
three_sisters avatar

three_sisters

Zen Follower

Join Date:
Nov 2006
Location:
Indiana
Posts:
188
Plugin Contributions:
0

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...

18 Dec 2007, 3:16 AM
#6
three_sisters avatar

three_sisters

Zen Follower

Join Date:
Nov 2006
Location:
Indiana
Posts:
188
Plugin Contributions:
0

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.

18 Dec 2007, 3:26 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.

18 Dec 2007, 3:07 PM
#8
three_sisters avatar

three_sisters

Zen Follower

Join Date:
Nov 2006
Location:
Indiana
Posts:
188
Plugin Contributions:
0

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!

18 Dec 2007, 4:35 PM
#9
three_sisters avatar

three_sisters

Zen Follower

Join Date:
Nov 2006
Location:
Indiana
Posts:
188
Plugin Contributions:
0

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?

18 Dec 2007, 10:50 PM
#10
three_sisters avatar

three_sisters

Zen Follower

Join Date:
Nov 2006
Location:
Indiana
Posts:
188
Plugin Contributions:
0

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?

19 Dec 2007, 1:22 AM
#11
three_sisters avatar

three_sisters

Zen Follower

Join Date:
Nov 2006
Location:
Indiana
Posts:
188
Plugin Contributions:
0

Re: HTTPS switches to HTTP

DrByte:

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.

Done. Folders are symlinked. Https works in admin, but not for customer login or checkout. I've done and checked everything I know to do and check. BlueHost says they can do no more - the problem lies with something in the cart. Now what? Please help.....

19 Dec 2007, 1:26 AM
#12
Kim avatar

Kim

Obaa-san

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

Re: HTTPS switches to HTTP

Have you got some sort of SEO URLS mod installed?

19 Dec 2007, 2:17 AM
#13
three_sisters avatar

three_sisters

Zen Follower

Join Date:
Nov 2006
Location:
Indiana
Posts:
188
Plugin Contributions:
0

Re: HTTPS switches to HTTP

Yes. Ultimate SEO Url's.

I'll go try disabling it to see if that fixes anything.

19 Dec 2007, 2:26 AM
#14
three_sisters avatar

three_sisters

Zen Follower

Join Date:
Nov 2006
Location:
Indiana
Posts:
188
Plugin Contributions:
0

Re: HTTPS switches to HTTP

That did it! Disables the mod and the page loaded fine with https...

That's half exciting and half not.... I'd like to continue to use the mod. Do you have any suggestions or should I take it up on a different thread (After doing some refined searches.)

Thanks a bunch!