Landing page

Switching to HTTPS protocol for WordPress, Joomla, Opencart and Modx

In the previous article, we described in detail the transition to the secure HTTPS protocol, installing the required SSL certificate and transferring data on the server, read here.

WORDPRESS

First of all, in the administrative panel, change the link settings from http to https:

Then, in the same way, we change the addresses of all media and files on the site, if you have not done this earlier. Thus, we translate the web resource and its content from HTTP to HTTPS.

We do not recommend doing this manually, it is better to use a plugin Really Simple SSL

It greatly simplifies this process. You can add it through the WordPress plugin panel.

Install and activate the plugin. After activation, just click on the button “Activate SSL ”as in the screenshot.

This completes the migration to HTTP for WordPress. It’s simple thanks to plugins, which is what WP is famous for. If you have any difficulties, write to us.

JOOMLA

After completing all the settings on the server, it’s time to go to the Joomla admin panel.

Then go to the tab “SERVER” and enable SLL on the whole site as shown in the screenshot below.

Let’s change the configuration.php file. Open it and find the line: public $ live_site = ;

Change to: public $ live_site = https: //your_site.ua ;

Then open the .htaccess file in the root directory of your site and add an entry at the end:

RewriteEngine On

RewriteCond %{HTTPS} OFF

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Then we save all the changes and see if the desired letter has appeared “S” in the site url.

READ  Popular services for accepting payments on the site

OPENCART

In this manual, we will consider enabling SSL for OpenCart 2.x.

  1. Naturally, first we buy the SSL certificate itself;
  2. Find two files config.php in the root directory and in the admin folder of your site;
  3. We make the following changes to it:
  • This fragment

// HTTPS

define('HTTPS_SERVER', 'http://yourdomain.com/');

Change to

// HTTPS

define('HTTPS_SERVER', 'https://yourdomain.com/');

Thus, we change the HTTP protocol to HTTPS.

  1. Making changes to the OpenCart control panel. Go in System-> Settings (System-> Settings). Then click on the Edit button.

Looking for the first setting – Use SSL? Press – YES

  1. We apply, update and check the presence of the HTTPS protocol in the browser address bar.

MODX

We go to the site control panel.

Instruments Configuration → Mchange “A type server ”on HTTPS We save

Next, go to the tab “Templates”, open the required template and change the code as shown in the screenshot.

Then we clear the cache via the button “Website” “Clear Cache”

The final stage. In file .htaccess, add the entry below

RewriteEngine On #если еще не добавлено

RewriteBase / #если еще не добавлено

RewriteCond %{HTTPS} off

RewriteCond %{HTTP:X-Forwarded-Proto} !https

RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

This is the code for setting up a 301 redirect that will redirect the user from old links to new ones. (from secure connection).

That’s all, now your site is protected, according to the requirements of search engines.

Lane Derrick

My name is Lane Derrick, back in 2014, he began to take an interest in SEO and webmastering, and started real projects six months later. For 6 years of practice, skills were formed that I use to this day. The main activity is website promotion and contextual advertising.

Leave a Reply

Your email address will not be published. Required fields are marked *