HelioHost Posted October 31, 2019 Posted October 31, 2019 (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 mywebsite 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 October 31, 2019 by Krydos cleaned up code
Krydos Posted October 31, 2019 Posted October 31, 2019 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.
Recommended Posts