Thread: SSL suggestion

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 32
  1. #1
    Join Date
    Jul 2009
    Posts
    402
    Plugin Contributions
    0

    Default SSL suggestion

    Hi,
    may be these are dumb questions but I really can't find proper answers around.
    I have v1.5.4 with ssl configured.
    SSL works and gets activated when logging in or checking out but is not active when browsing.

    I see many sites that are automatically redirect to https even at the home page.

    The questions are:
    1) Is it better for some reason (and if so why) to run under https starting from home page?
    2) To activate https immediately when accessing the site should I mod the includes/configure.php so that
    define('HTTP_SERVER', 'http://www.mysite.it');
    reads
    define('HTTP_SERVER', 'https://www.mysite.it');
    3) If I apply what in point 2) would this have any consequence aboutn google indexing and or adwords google merchant settings?

    Thanks.
    ciao from Italy
    enzo

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

    Default Re: SSL suggestion

    There is actually no reason that I can think of for your site to be under SSL the whole time as only sensitive information requires encryption and ZenCart is smart enough to envoke it when required

    But the answer to your question of "How" is correct
    Code:
    define('HTTP_SERVER', 'https://www.mysite.it');
    Will cause your site to be under SSL the whole time
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jul 2009
    Posts
    402
    Plugin Contributions
    0

    Default Re: SSL suggestion

    This is exactlywhat I thought.
    Thanks

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: SSL suggestion

    Nevertheless, some search engines, including the big G, give better search-result ranking to sites which are entirely SSL.

    If you want to make your site run entirely under SSL, there are two pieces to that:

    a) Zen Cart side:
    - HTTP_SERVER should use your https:// address instead of an http:// address
    - ENABLE_SSL should be set to 'false' (because ENABLE_SSL is only set to 'true' when you want ZC to switch back and forth between http and https for certain secured pages)
    *NOTE: Some people have reported that setting ENABLE_SSL to 'false' in this case may cause confusion to some payment module configurations which expect SSL and rely on the ENABLE_SSL setting to confirm it. Thus, in some cases it may still be wise to leave ENABLE_SSL set to 'true' even when using https on all pages.

    b) Server side:
    You might want to also make some Apache configurations to redirect any non-SSL URLs to the SSL equivalent. Often this is done in .htaccess. Consult your hosting company for the best way to do this on your particular server. (There are lots of possible approaches posted all over the internet, but your hosting company knows the best way for your particular server.)
    .

    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
    Join Date
    Jul 2009
    Posts
    402
    Plugin Contributions
    0

    Default Re: SSL suggestion

    WOW!
    Thank a lot!
    Ciao from Italy

  6. #6
    Join Date
    Jul 2009
    Posts
    402
    Plugin Contributions
    0

    Default Re: SSL suggestion

    I did it, and I added this to the .htaccess

    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L]

    It seems to work prefectly.
    May be is too much, but I pay for the ssl so why not use it?
    Thanks again.
    ciao from Italy
    enzo

  7. #7
    Join Date
    Jul 2009
    Posts
    402
    Plugin Contributions
    0

    Default Re: SSL suggestion

    I found a little problem with ssl on admin.
    CKEDITOR is not loaded, whle HTML area is.
    How can I fix this?
    I can use HTML area, but I am used to ckeditor, so....

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: SSL suggestion

    What is in your 2 configure.php files?
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Jul 2009
    Posts
    402
    Plugin Contributions
    0

    Default Re: SSL suggestion

    Here they are.
    Thanks
    enzo
    /*************** 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', 'https://www.mysite.it');
    define('HTTPS_SERVER', 'https://www.mysite.it');
    define('HTTP_SERVER_ALTERNATIVE', 'http://www.m.mysite.it');
    define('HTTPS_SERVER_ALTERNATIVE', 'https://www.m.mysite.it');
    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'false');
    /*************** 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. ***********/

    /**
    * WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN:
    * To do that, make sure you use a "https:" URL for BOTH the HTTP_SERVER and HTTPS_SERVER entries:
    */
    define('HTTP_SERVER', 'https://www.mysite.it');
    define('HTTPS_SERVER', 'https://www.mysite.it');
    define('HTTP_CATALOG_SERVER', 'https://www.mysite.it');
    define('HTTPS_CATALOG_SERVER', 'https://www.mysite.it');

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

  10. #10
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: SSL suggestion

    What about the rest of these files??

    And where did these come from??
    define('HTTP_SERVER_ALTERNATIVE', 'http://www.m.mysite.it');
    define('HTTPS_SERVER_ALTERNATIVE', 'https://www.m.mysite.it');
    Last edited by kobra; 22 May 2016 at 04:20 AM.
    Zen-Venom Get Bitten

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. docs suggestion
    By swguy in forum Upgrading to 1.5.x
    Replies: 2
    Last Post: 9 Nov 2011, 11:47 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR