Post by flatka » Wed Feb 15, 2017 8:41 pm

Hello,
I've successfully installed certificate on my website, however not displaying ssl certificate on index page and all categories.
but https://testpage111.com/admin page showing certificate as well.
I want to see my certificate on all opencart pages... not only on /admin or checkout...
I've configured config.php and admin/config.php

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

// HTTPS
define('HTTPS_SERVER', 'https://testpage111.com/');
define('HTTPS_IMAGE', 'https://testpage111.com/images/');

but still have a problem with index url and categories urls...
I know that the issue is known... please help to understand what i missing.
BTW, i've friendly urls configured in htaccess - if i remove RewriteRule from the file, certificate displayed but url link got 404


Posts

Joined
Wed Feb 15, 2017 8:29 pm

Post by uksitebuilder » Thu Feb 16, 2017 4:19 am

You simply need to set the HTTP_SERVER as your https address also.

Also, you should put a redirect in your .htaccess to redirect all http traffic to your SSL url.

Pop it after the RewriteBase / rule

RewriteCond %{HTTPS} !=on
RewriteRule ^(.*) https://testpage111.com/$1 [R=301,L]

ImageImageImageImageImage
For Friendly Professional Support - Click Here
"I will not answer your posts if you can't be bothered to specify your OC Version,
or provide a link to your site if it is a template related query
"


User avatar

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom
Who is online

Users browsing this forum: No registered users and 16 guests