Results 1 to 10 of 10
  1. #1

    Default www= http, no www = https

    I just switched hosts (to bluehost) and got a dedicated IP for SSL, and have been working with support to get Comodo SSL installed. After many hours of chat support it's now sort of working...

    When I type in www.doubledogdeal.com, I get http, but when i just type in doubledogdeal.com, I get https.

    Here are what I have for the two configure.php files that the help topic says to change...any ideas on what I need to change?

    (I'm not liking the https to be on the main page at all since it gives the warning message when you put something in the cart and would like it just to be http for product pages and index)
    --------------------------------------------------------------------------------------
    define('HTTP_SERVER', 'http://www.doubledogdeal.com');
    define('HTTPS_SERVER', 'https://www.doubledogdeal.com');
    define('HTTP_CATALOG_SERVER', 'http://www.doubledogdeal.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.doubledogdeal.com');

    // Use secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'true');
    define('ENABLE_SSL_ADMIN', 'true');
    --------------------------------------------------------------------------------------
    define('HTTP_SERVER', 'http://www.doubledogdeal.com');
    define('HTTPS_SERVER', 'https://www.doubledogdeal.com');

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

    Thanks!
    Last edited by pRS317; 13 Jul 2008 at 05:42 AM.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: www= http, no www = https

    If your SSL certificate was "issued" to your "doubledogdeal.com" domain (without the "www"), then you need to remove "www." from all those URLs in both those configure.php files.
    .

    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.

  3. #3

    Default Re: www= http, no www = https

    Now that you mention it, that makes it a bit more odd. Either way the domain is typed in, it goes to www (set that in htaccess), but the cert is for www (which is why I did the htaccess thing).

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: www= http, no www = https

    Sounds like you need to sort some things out with the hosting company before you go changing Zen Cart files then.
    .

    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.

  5. #5

    Default Re: www= http, no www = https

    The tech that was helping me, last night, modified my htaccess file to redirect to https. Removing the s cleared up the index page having SSL.

    The problem now, is that I can't access my admin panel. When SSL is diabled, I can get in just fine, but when it's enabled, my user/pass doesn't work and neither does resending the password. Is there something I'm doing wrong? I contacted support, again, and they said everything looks okay and confirmed that it works as I've described.

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

    Default Re: www= http, no www = https

    Please post your admin/includes/configure.php without your password -
    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.

  7. #7

    Default Re: www= http, no www = https

    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 "store" version of configure.php. ***********/
    /***************       The 2 files should be kept separate and not used to overwrite each other.      ***********/
    
    // Define the webserver and path parameters
      // Main webserver: eg-http://www.your_domain.com - 
      // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
      // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
      // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com
      // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com
      /* 
       * URLs 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', 'http://www.doubledogdeal.com');
      define('HTTPS_SERVER', 'https://www.doubledogdeal.com');
      define('HTTP_CATALOG_SERVER', 'http://www.doubledogdeal.com');
      define('HTTPS_CATALOG_SERVER', 'https://www.doubledogdeal.com');
    
      // Use 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', '/admin/');
      define('DIR_WS_CATALOG', '/');
      define('DIR_WS_HTTPS_ADMIN', '/admin/');
      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', '/home1/doublee1/public_html/admin/');
      define('DIR_FS_CATALOG', '/home1/doublee1/public_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', 'localhost');
      define('DB_SERVER_USERNAME', 'doublee1_zc1');
      define('DB_SERVER_PASSWORD', '************');
      define('DB_DATABASE', 'doublee1_zc1');
      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', 'database'); 
      define('DIR_FS_SQL_CACHE', '/home1/doublee1/public_html/cache');
    
    // EOF

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

    Default Re: www= http, no www = https

    Fix Cache Key is in the Troubleshooting Tools section of the downloads - try that and this article inthe FAQ may help too- https://www.zen-cart.com/tutorials/i...hp?article=100
    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.

  9. #9

    Default Re: www= http, no www = https

    That was a good thought. On my old host, I didn't redirect to www, and I had run that script before I did the htaccess change. I ran it again, but it reported that no changes were required. I'm also glad you mentioned it as I forgot to delete the file from the last time!

    If I were to uninstall and reinstall using fantastico, would that affect the installation of my SSL cert, or is that independent of everything else? (I'm pretty sure it is, I just would like confirmation...it took over 3 hours with tech support to get it installed and another bit until I figured out where they messed up)

    I'm thinking that if I did a new install, I could check to see if I still have the password error and figure out if there's something wrong with my current install. Would this be my best bet, or is there something else I can check first? Is it still possible that it's a server side issue even though everything else is working okay?

  10. #10

    Default Re: www= http, no www = https

    Okay, count my issues resolved! ZC finally let me reset my password =D I tried doing that so many times that I thought it futile to give it another go, but I'm in, now! I'm still not sure how SSL messed my password up, tho :o

    Thanks for all the help!

 

 

Similar Threads

  1. http://www.*** showing a different page than http://***
    By cellmania in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 19 Mar 2009, 07:43 PM
  2. Replies: 4
    Last Post: 19 Feb 2009, 06:02 PM
  3. site not found using http://www. but fine without www.
    By monkeymadness in forum General Questions
    Replies: 2
    Last Post: 8 Feb 2009, 09:02 AM
  4. Domain Name Mismatch (https:// vs https://www
    By johana.pat in forum General Questions
    Replies: 5
    Last Post: 27 Apr 2008, 04:42 PM
  5. Weird issue with http://www vs http://
    By bgroup99 in forum General Questions
    Replies: 2
    Last Post: 23 Apr 2008, 03:08 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