Redirect http to https

#1
Hi there folks, I'm having issues to set up a redirect from HTTP to https, I have tried different things from the web and just don't work, I don't know what am I missing.

Currently https works good, I've setup letsencrytp. If you guys can point me in the right direction will be most appreciated.
 

Attachments

#3
Hi, this is my current content, I just put the rules on the admin part, not in this file.

Code:
<IfModule LiteSpeed>
RewriteEngine on
CacheLookup on
RewriteRule .* - [E=Cache-Control:no-autoflush]

### marker LOGIN COOKIE start ###
RewriteRule .? - [E="Cache-Vary:wp-postpass_f7a17468facef3e19ac143ae6b669f7b"]
### marker LOGIN COOKIE end ###

</IfModule>
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
# END LSCACHE
# BEGIN NON_LSCACHE
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
# END NON_LSCACHE

# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
 

Cold-Egg

Administrator
#4
Hi,

It should work, so I just checked the site you shared and it seems port 80 is not allowed. Maybe that's the reason.
Code:
curl -IkL http://tralue.com/
curl: (7) Failed to connect to tralue.com port 80: Connection refused
 
Top