Do you want to add www or just use https://example.com/ without the www.
And also include https in your URL automatically.

Well, here’s the solution for you.
301 REDIRECT HTTP TO HTTPS AND NON-WWW TO WWW
# 301 REDIRECT HTTP TO HTTPS AND NON-WWW TO WWW**
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://www.%1%{REQUEST_URI} [L,NE,R=301]
Header always set Content-Security-Policy "upgrade-insecure-requests;"
</IfModule>
And the other solution is here:
301 REDIRECT HTTP TO HTTPS AND WWW TO NON-WWW
# 301 REDIRECT HTTP TO HTTPS AND WWW TO NON-WWW
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]
Header always set Content-Security-Policy "upgrade-insecure-requests;"
</IfModule>
More articles you may find interesting...
LinuxMint: Static, crackling noise. [My Solution]
UPDATE: HERE IS A MUCH BETTER SOLUTION FOR THE BUZZING SOUN...
UPDATE: HERE IS A MUCH BETTER SOLUTION FOR THE BUZZING SOUN...
Zelda Classic - Free Role Playing Game
Zelda Classic is the name of a free RPG. I'm sure most of yo...
Zelda Classic is the name of a free RPG. I'm sure most of yo...
Pcwin Speaker Record - Records Everything You Hear From Your Speakers
PCWin Speaker Record - Records Everything You Hear From Your...
PCWin Speaker Record - Records Everything You Hear From Your...