how http and https works code example
Example: HTTP to HTTPS
# .htaccess
# WordPress Website von http zu https umziehen
# Move WordPress website from http to https
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>