Admin
November 15, 2023, 10:05am
2
Your SSL is working, but you’re not enforcing it yet. Setting up SSL will only make your website capable of using SSL. If you want everyone to use it, you’ll need to force it yourself.
After you’ve enabled SSL for your website, you’ll probably want to redirect all traffic on your website to the https version of your site. There are multiple ways to do that. Let’s compare some commonly used ways.
Using script configuration
Some scripts (including Wordpress) have a setting which allows you to set your website URL. By changing this URL from http://example.com to https://example.com , the script will probably redirect visitors to the https version of your site. Even if your script…
Hello, today we will force our WordPress site to use HTTPS instead of HTTP
You can use plugins or something else but the proper way to force your site to use HTTPS is by editing the .htaccess file.
In fact, doing something wrong with .htaccess can cause your site to crash and more
So let’s start our Guide
If you set up your WordPress your .htaccess should look like this
#BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
R…
4 Likes