MAKE YOUR WEBSITE SECURE | HTTP to HTTPS Auto Redirect

Опубликовано: 01 Ноябрь 2024
на канале: MrFlacko
393
10

This video will explain how to edit your .htdocs file to automatically redirect newcomers from running in http to running in https

Here is the text you will have to copy to you .htdocs file within your Public HTML in your FTP to the webhost.

RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteEngine On
RewriteCond %{HTTP_HOST} ^plexusmc\.net [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.plexusmc.net/$1 [R=301,L]

Here is some raw text in case the youtube copy doesn't work
https://pastebin.com/raw/tAwmua4q

Check out the website https://plexusmc.net/