Forums / General Questions / Setting a particular page to use HTTP instead of HTTPS????

Setting a particular page to use HTTP instead of HTTPS????

Views: 2,446

Results 1 to 10 of 10
27 Apr 2012, 9:46 AM
#1
saraisarai avatar

saraisarai

New Zenner

Join Date:
Apr 2012
Location:
Houston, TX
Posts:
21
Plugin Contributions:
0

Setting a particular page to use HTTP instead of HTTPS????

Some of the elements do not show on the index.html page in the HTTPS side of my site. I contacted godaddy who my hosting and SSL is thru to see if they can install the SSL on my shopping cart only, and they have told me that they can not install SSL on just a portion of my site. They suggested that I use the scripting and the design of my website to stop using HTTPS on that particular page but they can not help me with coding.

Does anyone know how i can keep visitors from visiting my index.html page in HTTPS so that they may visit it in HTTP instead?

I have tried a couple of 301 redirects for that specific page. When you visit the site at https://www.Sarai-Sarai.com, it will take you to the HTTP site...but once i go to another page and go back to the home page, its back to HTTPS.

Any help would be appreciated

27 Apr 2012, 10:05 AM
#3
saraisarai avatar

saraisarai

New Zenner

Join Date:
Apr 2012
Location:
Houston, TX
Posts:
21
Plugin Contributions:
0

Re: Setting a particular page to use HTTP instead of HTTPS????

stevesh:

If properly configured, Zencart decides what pages need to be secured. Make sure you've followed these instructions, especially #3:

http://www.zen-cart.com/content.php?56-how-do-i-enable-ssl-after-i-have-installed-zen-cart

Thanks. Ive followed the instructions for enabling SSL in my zencart and SSL is functioning properly. My entire site is secure, however, i need the index.php page to display in HTTP...not HTTPS. ZenCart automatically displays this page in HTTPS. GoDaddy has told me that there is coding that will block HTTPS from a particular page.

27 Apr 2012, 10:25 AM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Setting a particular page to use HTTP instead of HTTPS????

I'll suggest again that you check the settings in your configure.php file against the instructions I referenced. It appears that you have the whole site set to https, which you don't want.

27 Apr 2012, 10:40 AM
#5
saraisarai avatar

saraisarai

New Zenner

Join Date:
Apr 2012
Location:
Houston, TX
Posts:
21
Plugin Contributions:
0

Re: Setting a particular page to use HTTP instead of HTTPS????

stevesh:

I'll suggest again that you check the settings in your configure.php file against the instructions I referenced. It appears that you have the whole site set to https, which you don't want.

This is what i have set up in my zencart/includes/configure.php file?

// 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://sarai-sarai.com');
define('HTTPS_SERVER', 'https://sarai-sarai.com');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'true');

and my admin/includes/configure.php file:

*/
define('HTTP_SERVER', 'https://sarai-sarai.com');
define('HTTPS_SERVER', 'https://sarai-sarai.com');
define('HTTP_CATALOG_SERVER', 'https://sarai-sarai.com');
define('HTTPS_CATALOG_SERVER', 'https://sarai-sarai.com');

// secure webserver for admin? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL_ADMIN', 'true');

// secure webserver for storefront? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL_CATALOG', 'true');

Is it possible that things aren't set up correctly on the SSL so that Zen Cart can automatically decide what pages should be secured?

27 Apr 2012, 11:46 AM
#6
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Setting a particular page to use HTTP instead of HTTPS????

You say the issue lies with a page called index.html .

Zencart will refer to index.php

What is generating that HTML page ?

27 Apr 2012, 11:52 AM
#7
saraisarai avatar

saraisarai

New Zenner

Join Date:
Apr 2012
Location:
Houston, TX
Posts:
21
Plugin Contributions:
0

Re: Setting a particular page to use HTTP instead of HTTPS????

fairestcape:

You say the issue lies with a page called index.html .

Zencart will refer to index.php

What is generating that HTML page ?

i'm sorry...i meant index.php

I set up a 301 redirect for the index.php page...and that seems to work, but this URL: https://sarai-sarai.com/boutique/index.php?main_page=index is the link that I am having trouble with. I need it to direct to HTTP...not HTTPS

I thought maybe i could setup a 301 redirect for the tpl_main_page.php file...but that doesn't work. I dont know if i can do this using an htaccess file?

27 Apr 2012, 4:05 PM
#8
drbyte avatar

drbyte

Sensei

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

Re: Setting a particular page to use HTTP instead of HTTPS????

In your template you have hard-coded all your top-navigation-menu links to use https. Change that and your "home link" problem will go away.

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

27 Apr 2012, 4:20 PM
#9
drbyte avatar

drbyte

Sensei

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

Re: Setting a particular page to use HTTP instead of HTTPS????

Correction to my above statement. It appears your navigation menu is based on EZ-Pages links, which is fine, but you've configured them all to use SSL, which is contrary to what your posts say you want. Switching off the SSL setting on each of those specific EZ-Pages entries should help.

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

27 Apr 2012, 5:01 PM
#10
saraisarai avatar

saraisarai

New Zenner

Join Date:
Apr 2012
Location:
Houston, TX
Posts:
21
Plugin Contributions:
0

Re: Setting a particular page to use HTTP instead of HTTPS????

DrByte:

Correction to my above statement. It appears your navigation menu is based on EZ-Pages links, which is fine, but you've configured them all to use SSL, which is contrary to what your posts say you want. Switching off the SSL setting on each of those specific EZ-Pages entries should help.

Oh my gosh thank you so much!!! This is my first time using Zen Cart...if i only knew it was that simple, i wouldn't have been up at 4am! :-)

Thanks again for your help!