Results 1 to 10 of 10
  1. #1
    Join Date
    Sep 2009
    Posts
    136
    Plugin Contributions
    0

    Default Script to remove SSL from certain pages

    Hello. I have looked through the forum and see many people asking how to make the Contact Us page SSL, but is there a way to make it Non-SSL on a secure site?

    My website is SSL across the board, but because of that the Contact Us form is no longer working (it gives the error messages " Sorry, is your name correct? Our system requires a minimum of 2 characters. Please try again. Sorry, my system does not understand your email address. Please try again. Did you forget your message? We would like to hear from you. You can type your comments in the text area below.).

    I understand the Contact Form is designed to be Non-SSL, so is there a script I can write in to make the SSL not appear on that page?? My hosting company is saying they can only put SSL on everything or nothing and it's up to me to write a script on the particular page I need non-SSL. Hope that makes sense!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Script to remove SSL from certain pages

    My hosting company is saying they can only put SSL on everything or nothing
    Post the contents of your 2 configure.php files here x'ing out database details
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Script to remove SSL from certain pages

    Quote Originally Posted by cactusrunning View Post
    Hope that makes sense!
    No, not really.

    If it's really an SSL issue, then it's probably only related to SSL insomuch as you've got rewrite rules or configure.php settings that are working against each other. Or you're using a shared-SSL certificate that's getting itself tied up in a knot because of a hosting-company proxy or something.

    In addition to posting your configure.php files' contents, please also name your hosting company.
    .

    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.

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Script to remove SSL from certain pages

    Quote Originally Posted by cactusrunning View Post
    My hosting company is saying they can only put SSL on everything or nothing and it's up to me to write a script on the particular page I need non-SSL. Hope that makes sense!
    This is a major alarm bell to me. I'd FIRE this host immediately and go somewhere else !!!

    Only a complete ignoramus would make this suggestion.
    20 years a Zencart User

  5. #5
    Join Date
    Sep 2009
    Posts
    136
    Plugin Contributions
    0

    Default Re: Script to remove SSL from certain pages

    <?php

    /**

    * dist-configure.php

    *

    * @package Configuration Settings

    * @package Admin

    * @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

    * @version $Id: dist-configure.php 6329 2007-05-16 15:36:56Z drbyte $

    * @private

    */



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

    // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.yourdomain.com

    // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.yourdomain.com

    /*

    * URL's for your site will be built via:

    * HTTP_SERVER plus DIR_WS_ADMIN or

    * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or

    * HTTP_SERVER plus DIR_WS_CATALOG or

    * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG

    * ...depending on your system configuration settings

    *

    * If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following:

    */

    define('HTTP_SERVER', 'https://xxxxxx.com');

    define('HTTPS_SERVER', 'https:/xxxxxxx.com');

    define('HTTP_CATALOG_SERVER', 'https://xxxxxx.com');

    define('HTTPS_CATALOG_SERVER', 'https://xxxxxx.com');



    // secure webserver for catalog module and/or admin areas?

    define('ENABLE_SSL_CATALOG', 'true');

    define('ENABLE_SSL_ADMIN', '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_ADMIN', '/xxxx/');

    define('DIR_WS_CATALOG', '/');

    define('DIR_WS_HTTPS_ADMIN', '/xxxx/');

    define('DIR_WS_HTTPS_CATALOG', '/');



    define('DIR_WS_IMAGES', 'images/');

    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

    define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');

    define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');

    define('DIR_WS_INCLUDES', 'includes/');

    define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

    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_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');



    // * 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_ADMIN', '/home/content/x/x/x/xxxx/html/xxxx/');

    define('DIR_FS_CATALOG', '/home/content/x/x/x/xxxx/html/');



    define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

    define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

    define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

    define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');

    define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');



    // define our database connection

    define('DB_TYPE', 'mysql');

    define('DB_PREFIX', 'zen_');

    define('DB_SERVER', 'xxxxxxx');

    define('DB_SERVER_USERNAME', 'xxxxxx');

    define('DB_SERVER_PASSWORD', 'xxxxxx');

    define('DB_DATABASE', 'xxxxx');

    define('USE_PCONNECT', 'false');

    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/content/x/x/x/xxxxx/html/cache');


    ?>

  6. #6
    Join Date
    Sep 2009
    Posts
    136
    Plugin Contributions
    0

    Default Re: Script to remove SSL from certain pages

    <?php
    /**
    * dist-configure.php
    *
    * @package Configuration Settings
    * @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
    * @version $Id: dist-configure.php 6329 2007-05-16 15:36:56Z drbyte $
    * @private
    */
    // 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://xxxx.com');
    define('HTTPS_SERVER', 'https://xxxx.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', '/');
    define('DIR_WS_HTTPS_CATALOG', '/');

    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/content/x/x/x/xxxxx/html/');

    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', 'zen_'); // prefix for database table names -- preferred to be left empty
    define('DB_SERVER', 'xxxxxx.secureserver.net');
    define('DB_SERVER_USERNAME', 'xxxxx');
    define('DB_SERVER_PASSWORD', 'xxxxx');
    define('DB_DATABASE', 'xxxxxx');
    define('USE_PCONNECT', 'false');
    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/content/x/x/x/xxxx/html/cache');

    ?>

  7. #7
    Join Date
    Sep 2009
    Posts
    136
    Plugin Contributions
    0

    Default Re: Script to remove SSL from certain pages

    wow that was a lot to post!

  8. #8
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Script to remove SSL from certain pages

    Ya. And it's useless to us without the actual information you xxxxxx'd out. May as well have not posted anything.
    The reason we need to see it is to understand what exactly you're telling it to do with URLs and folders.

    As was said before, only xxxx out the db details.
    .

    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.

  9. #9
    Join Date
    Sep 2009
    Posts
    136
    Plugin Contributions
    0

    Default Re: Script to remove SSL from certain pages

    Ok so whoever I talked to at GoDaddy was an idiot. I found out he didn't work in the hosting dept, but in the SSL dept so he really didn't know anything about technical support. I talked with someone new and we were able to figure out that if the .htaccess file was renamed in the html file (left the .htaccess file in the Admin file alone), the Contact Us page began working fine. It also changed all the website pages to non-secure, but as soon as something was added to the shopping cart, it automatically switched into SSL mode, so the entire checkout procedure was secure. Everything appears to be working properly!

  10. #10
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Script to remove SSL from certain pages

    Yay! Thanks for updating the discussion.

    For future reference, the SSL configuration instructions are here: http://www.zen-cart.com/content.php?...alled-zen-cart
    .

    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.

 

 

Similar Threads

  1. Remove categories list from certain pages
    By lainybroon in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 30 Nov 2010, 08:09 PM
  2. remove search sidebox from SSL pages
    By gorie in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 17 Aug 2010, 02:55 AM
  3. Remove titles from certain EZ pages
    By bigbadboy in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 May 2008, 03:00 PM
  4. remove script from product info pages?
    By doodlebee in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 16 Apr 2007, 03:55 PM
  5. Remove sideboxes from certain pages?
    By chrisj in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Aug 2006, 10:40 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