There are several ways to force your WordPress website to use a free or paid SSL (HTTPS) certificate for a secure connection. However, in some situations a WordPress website refuses to display images and instead generates mixed content errors (can be viewed using browser developer tools or web applications such as WhyNoPadlock.com).

To fix this problem, we recommend installing the Really Simple SSL plugin, no special configurations are required.

Starting with version 3.1.6, plugin developers have improved the ease of use for WP-CLI commands.

To enable Really Simple SSL using WP-CLI, we recommend that you follow the steps below:

 

- Log in to the SSH console

- Install Really Simple SSL by running the command:

wp plugin install really-simple-ssl --activate

Type:

wp rsssl activate_ssl

Once the activation is complete, you should see the following message:

"Success: SSL activated"

- Clear your browser's cache or start a private browsing session. Visit your website by typing the address without HTTPS. It should redirect you to HTTPS.

- Configure your website to perform FreeSSL updates when Really Simple SSL is enabled.

If you encounter problems after activating the plugin, you can undo the changes with:

wp rsssl deactivate_ssl

There are several ways to further secure your WordPress website:

  • Follow the Safety and Performance recommendations in the Site Health feature
  • Use security plugins, such as WordFence Security, for in-depth protection that you can customize in your dashboard
  • WordPress Sucuri Security for combating hacking attempts
  • Backup plugins to automatically schedule and verify backups

 

For assistance in applying the above instructions on HostX servers please contact us. HostX offers the fastest WordPress hosting and can help you solve your problems.

Cette réponse était-elle pertinente ? 0 Utilisateurs l'ont trouvée utile (0 Votes)