Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2012
    Posts
    68
    Plugin Contributions
    0

    Default https not working on main page

    <jamisoncorp.com> When going to my site it opens in http once I click on any link in the store it changes to https. I have changed http server to https but that does not fix the problem. My store is on vps/cloud and I have webmin panel. I do not want my store to open as http how do I fix this?

  2. #2
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: https not working on main page

    There are three ways that have been identified to force the first page loaded (main page or any other) to be loaded under https. The cPanel of your host can be set to redirect all requests to https, there is a code modification that has been suggested for version 1.5.6 (should be compatible with earlier versions as well) and there is a command that can be put into an .htaccess file that would have to be placed in the root of your store.

    Otherwise, what is described is normal behavior for the software.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,688
    Plugin Contributions
    9

    Default Re: https not working on main page

    if you wanted to do it within ZC, there are 2 new scripts, and 1 modification to an existing one. you can see those changes here:

    https://github.com/zencart/zencart/p...s?diff=unified

    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  4. #4
    Join Date
    Mar 2012
    Posts
    68
    Plugin Contributions
    0

    Default Re: https not working on main page

    # This is used with Apache WebServers
    #
    # The following blocks direct HTTP requests to all filetypes in this directory recursively, except certain approved exceptions
    # It also prevents the ability of any scripts to run. No type of script, be it PHP, PERL or whatever, can normally be executed if ExecCGI is disabled.
    # Will also prevent people from seeing what is in the dir. and any sub-directories
    #
    # For this to work, you must include either 'All' or at least: 'Limit' and 'Indexes' parameters to the AllowOverride configuration in your apache/conf/httpd.conf file.
    # Example:
    #<Directory "/usr/local/apache/htdocs">
    # AllowOverride Limit Indexes
    #</Directory>
    ###############################
    RewriteCond %{HTTP_HOST} jamisoncorp\.com [NC]
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://jamisoncorp.com/$1 [R,L]#
    <Limit GET POST PUT>
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    Order Allow,Deny
    Deny from all
    </IfModule>
    </Limit>

    #NOBODY SHOULD BE SNOOPING HERE

    # deny *everything*
    <FilesMatch ".*">
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    Order Allow,Deny
    Deny from all
    </IfModule>
    </FilesMatch>

    IndexIgnore */*

    This is what my htaccess looks like after adding the 3 lines of code at the top given by whynopadlock;

    Below code is for forcing HTTPs on an Apache webserver. If you are using another webserver such as lighttpd, nginx, etc you will need to contact your web hosting provider for assistance.

    Add the following code to the .htaccess file in your webhosting account:

    RewriteCond %{HTTP_HOST} jamisoncorp\.com [NC]
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://jamisoncorp.com/$1 [R,L]

    I installed the script and it makes no difference, still no ssl on main page
    Last edited by asdco; 11 Jan 2018 at 06:49 PM.

  5. #5
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,688
    Plugin Contributions
    9

    Default Re: https not working on main page

    prior to your 3 lines of code, add the following line:

    Code:
    RewriteEngine On
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  6. #6
    Join Date
    Mar 2012
    Posts
    68
    Plugin Contributions
    0

    Default Re: https not working on main page

    Quote Originally Posted by carlwhat View Post
    prior to your 3 lines of code, add the following line:

    Code:
    RewriteEngine On
    ok I added that and still the same. I also went to my webmin control panei and did a redirect; http://www.jamisoncorp.com TO https://www.jamisoncorp.com that did not work either.

  7. #7
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,688
    Plugin Contributions
    9

    Default Re: https not working on main page

    cpanel changes are just writing to the htaccess file. i would stick with manually editing your htaccess file.

    at this point one would need to question if it is named correctly as well as in the correct directory with the correct permissions.

    i would contact your hosting company about the answers to these questions as they should be able to help w these issues.

  8. #8
    Join Date
    Mar 2012
    Posts
    68
    Plugin Contributions
    0

    Default Re: https not working on main page

    Quote Originally Posted by carlwhat View Post
    cpanel changes are just writing to the htaccess file. i would stick with manually editing your htaccess file.

    at this point one would need to question if it is named correctly as well as in the correct directory with the correct permissions.

    i would contact your hosting company about the answers to these questions as they should be able to help w these issues.
    thank you I will do that today actually I did that once before but I'll try again. Their answer was that the problem was in the zencart program and passed the problem onto me lol but I'll try again

  9. #9
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,688
    Plugin Contributions
    9

    Default Re: https not working on main page

    htacess happens BEFORE zencart touches anything. try to be very specific with your hosting company. its all about those 3 lines in your .htaccess file and those apache directives happen before zencart does anything.

    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

 

 

Similar Threads

  1. HTTPS not working
    By Fancyfrills in forum Basic Configuration
    Replies: 20
    Last Post: 11 Aug 2012, 07:42 PM
  2. Flash Not Working on Main Page in Firefox
    By jgnaiz in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 Apr 2010, 02:24 AM
  3. subcategories not working on main section of page?
    By omix-ada in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 26 Oct 2009, 09:38 PM
  4. HTML tags not working in main product page?
    By scottmcclean in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 14 Sep 2009, 03:34 PM
  5. Site not working in https in I.E.
    By dsaini in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 7 Aug 2006, 05:35 AM

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