HTTPS Enforce broke an Elementor website

[ad_1]

Hello @valentino08,

When you enable HTTPS Enforce, the following set of rules is added to the .htaccess file of your website:

# HTTPS forced by SG-Optimizer
<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteCond %{HTTPS} off
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
# END HTTPS

To disable the HTTPS Enforce option without logging into the website’s Dashboard, just delete the aforementioned lines.

Best regards,
Daniela Ivanova

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer