InMotion Hosting Support Center

There are many ways to force a website to use HTTPS for a secure SSL connection including the .htaccess 301 redirect and HTTP Strict Transport Security (HSTS) preload list. Below we cover how to force Matomo to use HTTPS with the configuration file and ForceSSL plugin.

Edit Configuration File

Editing the configuration file is the easiest option for those with access.

  1. Edit your config/config.ini.php file using cPanel File Manager or FTP.
  2. Under [General], change the number beside force_ssl = from 0 to 1.
    Matomo should redirect to HTTPS automatically next time you login Matomo.

Install ForceSSL Plugin

For those unable to access the config file, you can install the ForceSSL plugin.

  1. Login Matomo.
  2. Select the Administration icon beside All Websites.
  3. Select Marketplace under Platform.
    Select Marketplace under Platform
  4. On the right, search ForceSSL and press Enter.
    Search ForceSSL
  5. Select Install.
    Click Install
  6. Select Activate Plugin.
    Activate Plugin
    Matomo should redirect to HTTPS automatically next time you login Matomo.

Deactivate ForceSSL

You may need to disable the HTTPS redirect if your SSL expires. You can deactivate the plugin within the config file or dashboard.

  1. Select Plugins under System.
    Select Plugins under System
  2. Select Deactivate on the right of ForceSSL.
    Select Deactivate
    You can uninstall it on the same page if preferred but its not necessary.
  3. Note:If you can't log into Matomo, you'll need to edit your config.ini.php file and under [Plugins] remove the line Plugins[] = "ForceSSL" to deactivate the plugin. Then change the number beside force_ssl = from 1 to 0.


You can read more about improving your web analytics in our Matomo Analytics section.

Was this article helpful?

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!