Forcing https:// Tutorial

Jason76

Madly Diligent
Joined
Nov 27, 2016
Messages
7,213
Reaction score
961
FP$
358
If you have https:// installed either free or paid, you might still need to force it.

Insert the code at the top of the file:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://forumpromotion.net/$1 [R,L]
Substitute the URL in the code with yours, of course. 😛
 
You should probably share what file you’re putting this code into. 😛

I assume .htaccess.
 
You should probably share what file you’re putting this code into. 😛

I assume .htaccess.
You're right. .htaccess which could be a hidden folder you have to unhide in some hosting.
 
that's what I always had in my .htaccess anyway LOL
 
Back
Top Bottom