Jump to content

Recommended Posts

Posted (edited)

Username: sanferna, Server: Johnny, Main domain: semanasanfernandomaldonado.heliohost.org

 

Hi Dear HelioHost,

I already have a certificate SSL in my djblackshow@gmail.com account

 

with domain: https://semanasanfernandomaldonado.heliohost.org/

 

What I would like to know, how can I modify the .htaccess to redirect my

website from http to https.

You could make me the respective configuration.

 

Thank you

 

CODE:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R01]
Best Regards Edited by Krydos
cleaned up code
Posted

That .htaccess should work. The email butchered it a little, but it looks right I think. If you're having trouble creating or editing your .htaccess file make sure you enable hidden dot files in the file manager settings.

Guest
This topic is now closed to further replies.
×
×
  • Create New...