INFO MAKE YOUR WEBSITE SECURE | HTTP to HTTPS Auto Redirect

  • Join our discord: https://discord.gg/7vspaTE

MrFlacko

PlexusMC Owner/Founder
Founder
Owner
Co-Owner
Staff Manager
Developer
Trainee
Registered
Staff Member
Oct 15, 2019
62
20
8
Australia
www.plexusmc.net
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.

Code:
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