How to Force Your Site to HTTPS

You can add the following code to your .htaccess file to force your site from HTTP to HTTPS.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 
If you force your site to HTTPS and you are still not seeing your site to be secure you will want to install and enable the Insecure Content Fixer plugin.  For information on how to install this plugin, please see How to Install and Activate the Insecure Content Fixer Plugin
  • 0 Пользователи нашли это полезным
Помог ли вам данный ответ?

Связанные статьи

Installing WordPress with Softaculous

Once logged into your DirectAdmin control panel, please navigate to Softaculous Auto Installer...

Accessing Your WordPress Dashboard

The URL for your WordPress Dashboard, by default, is example.com/wp-admin or...

How to Update to the Latest Version of PHP in DirectAdmin

You can change the PHP Version on your sites at any time by logging in to your DirectAdmin...

Changing Your WordPress Dashboard Admin Password

In order to change your WordPress dashboard password, you will need to log into your DirectAdmin...

What to do When Your Site Loads Blank

If your Wordpress site or Dashboard loads to an all-white screen, or you receive an Internal...