Jump to content
Sign in to follow this  

How To Install SSL Correctly

Recommended Posts

Posted (edited)

Hi There,

Recently, I have joined this forum to know how to install SSL certificate.

I have purchased web hosting from bigrock where they gave me a free SSL certification for my website xplormedia dot com. I tried to install that but getting error while redirecting URLs. I have already contacted them but got no solution as they replied "find a developer by your side to get solution". I am neither technical person nor have any amount to pay to a developer.

My website's homepage is redirecting from http:// to https:// but when I am checking internal pages then it is showing two different URLs, first with http:// and another one with https://

Please gently lead me!



Edited by XplorMedia

Share this post

Link to post
Share on other sites


There are 3 areas that need to be set up correctly ...

1) Your website is XplorMedia.com. It is NOT www.XplorMedia.com. Note the www. prefix. You need to make sure that your SSL certificate and website name match.

2a) You need to make sure your .htaccess file redirects people to the correct name. In other words, if people type www.XplorMedia.com, your .htaccess file needs to redirect them to XplorMedia.com (without the www.).

2b) Your .htaccess file must then redirect people to your https:// site.

3) In osCommerce, there are two configuration files:

<shop root>/includes/configure.php

<shop root>/<your admin directory>/includes/configure.php

BOTH of these need to be edited to reflect that you are using a SSL certificate. For example,

  define('HTTP_SERVER', 'https://XplorMedia.com');
  define('HTTPS_SERVER', 'https://XplorMedia.com');
  define('ENABLE_SSL', true);

Note that there is no www. in the URLs (since your site, and SSL certificate aren't using it), that the httpS is in BOTH URLs, and that ENABLE_SSL is set to true.



Get the latest Responsive osCommerce CE (community edition) here .

Share this post

Link to post
Share on other sites

Thank you Malcolm. That's exactly what I needed to know. My shop was displaying Not Secure warnings despite having SSL provided by my host. Now sorted with the above code. Cheers, GB

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this