Articles on: FAQs

How to force HTTPS in URLs

Most web servers already force HTTP to HTTPS redirection automatically if you've installed SSL certificate.

However, if your web server is not forcing HTTPS, add the following code to .htaccess file:

Make sure to add this code above FlyingPress rules in htaccess.

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Force HTTPS
    RewriteCond %{HTTPS} off
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Updated on: 22/03/2024

Was this article helpful?

Share your feedback


Thank you!