Page 1 of 1

Products not loading on https

Posted: Sun Apr 01, 2018 6:12 pm
by pablormago
Hi to all, i have a problem:

When i use HTTP protocol, all my category products are showed: http://www.laclonadora.com/index.php?r ... th=170_177

But when i use HTTP, it only shows a few, and stuks at LOADING: https://www.laclonadora.com/index.php?r ... th=170_177

this is my .httaccess file:

Code: Select all

# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
 Require all denied
## For apache 2.2 and older, replace "Require all denied" with these two lines :
# Order deny,allow
# Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/

RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]


RewriteEngine On
RewriteCond  %{HTTPS}  !on  [OR]
RewriteCond  %{HTTP_HOST}  !^www\.  [NC]
RewriteRule  ^(.*)$  https://www.laclonadora.com/$1  [R=301,L]
my root config.php:

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://www.laclonadora.com/');

// HTTPS
define('HTTPS_SERVER', 'https://www.laclonadora.com/');

// DIR
define('DIR_APPLICATION', '/var/www/vhost/laclonadora.com/home/html/catalog/');
define('DIR_SYSTEM', '/var/www/vhost/laclonadora.com/home/html/system/');
define('DIR_IMAGE', '/var/www/vhost/laclonadora.com/home/html/image/');
define('DIR_LANGUAGE', '/var/www/vhost/laclonadora.com/home/html/catalog/language/');
define('DIR_TEMPLATE', '/var/www/vhost/laclonadora.com/home/html/catalog/view/theme/');
define('DIR_CONFIG', '/var/www/vhost/laclonadora.com/home/html/system/config/');
define('DIR_CACHE', '/var/www/vhost/laclonadora.com/home/html/system/storage/cache/');
define('DIR_DOWNLOAD', '/var/www/vhost/laclonadora.com/home/html/system/storage/download/');
define('DIR_LOGS', '/var/www/vhost/laclonadora.com/home/html/system/storage/logs/');
define('DIR_MODIFICATION', '/var/www/vhost/laclonadora.com/home/html/system/storage/modification/');
define('DIR_UPLOAD', '/var/www/vhost/laclonadora.com/home/html/system/storage/upload/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'xxx');
define('DB_USERNAME', 'xxx');
define('DB_PASSWORD', 'xxx');
define('DB_DATABASE', 'xxx');
define('DB_PORT', 'xxx');
define('DB_PREFIX', 'oc_');
my Admin config.php:

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://www.laclonadora.com/admin/');
define('HTTP_CATALOG', 'http://www.laclonadora.com/');

// HTTPS
define('HTTPS_SERVER', 'https://www.laclonadora.com/admin/');
define('HTTPS_CATALOG', 'https://www.laclonadora.com/');

// DIR
define('DIR_APPLICATION', '/var/www/vhost/laclonadora.com/home/html/admin/');
define('DIR_SYSTEM', '/var/www/vhost/laclonadora.com/home/html/system/');
define('DIR_IMAGE', '/var/www/vhost/laclonadora.com/home/html/image/');
define('DIR_LANGUAGE', '/var/www/vhost/laclonadora.com/home/html/admin/language/');
define('DIR_TEMPLATE', '/var/www/vhost/laclonadora.com/home/html/admin/view/template/');
define('DIR_CONFIG', '/var/www/vhost/laclonadora.com/home/html/system/config/');
define('DIR_CACHE', '/var/www/vhost/laclonadora.com/home/html/system/storage/cache/');
define('DIR_DOWNLOAD', '/var/www/vhost/laclonadora.com/home/html/system/storage/download/');
define('DIR_LOGS', '/var/www/vhost/laclonadora.com/home/html/system/storage/logs/');
define('DIR_MODIFICATION', '/var/www/vhost/laclonadora.com/home/html/system/storage/modification/');
define('DIR_UPLOAD', '/var/www/vhost/laclonadora.com/home/html/system/storage/upload/');
define('DIR_CATALOG', '/var/www/vhost/laclonadora.com/home/html/catalog/');
It´s OC 2.3.0.2 and Journal Theme, any ideas?? I redirect all non www to www, and to https...

Re: Products not loading on https

Posted: Sun Apr 01, 2018 7:22 pm
by straightlight
I just went to your store and all links seem to be loading normally with the products. Has this issue been rectified?

Re: Products not loading on https

Posted: Sun Apr 01, 2018 8:34 pm
by pablormago
straightlight wrote:
Sun Apr 01, 2018 7:22 pm
I just went to your store and all links seem to be loading normally with the products. Has this issue been rectified?
Yes, but increasing the number of items per page to 100, but i think it´s not the best solution

Re: Products not loading on https

Posted: Sun Apr 01, 2018 10:03 pm
by straightlight
When i use HTTP protocol, all my category products are showed: http://www.laclonadora.com/index.php?r ... th=170_177

But when i use HTTP, it only shows a few, and stuks at LOADING: https://www.laclonadora.com/index.php?r ... th=170_177
By increasing the number of results per page may simply result on showing all the category results to one page which wouldn't be the best option, indeed.

Re: Products not loading on https

Posted: Mon Apr 02, 2018 6:06 am
by pablormago
straightlight wrote:
Sun Apr 01, 2018 10:03 pm
When i use HTTP protocol, all my category products are showed: http://www.laclonadora.com/index.php?r ... th=170_177

But when i use HTTP, it only shows a few, and stuks at LOADING: https://www.laclonadora.com/index.php?r ... th=170_177
By increasing the number of results per page may simply result on showing all the category results to one page which wouldn't be the best option, indeed.
Thats what i said

Re: Products not loading on https

Posted: Mon Apr 02, 2018 6:15 am
by straightlight
What you also said is when you are using HTTP and when you are not using HTTP with two different types of protocol URL addresses.