top of page

How to Force HTTPS

Writer: Kazi Tanjedul ErshadKazi Tanjedul Ershad

Your .htaccess file is located in the root folder of your WordPress installation. Usually, this folder is called public_html.

You need to open this file with the code editor of your choice and add the below code (preferably at the very top).

# Force HTTPS on all pages

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteCond %{HTTPS} !on

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

</IfModule>



 
 
 

Comments


Opening Hours

Sat - Thu: 7am - 10pm

Fri: 9am - 10pm

  • Facebook Social Icon
  • Twitter
  • LinkedIn Social Icon
Mid BASIS Logo.png

Tanjid's Studio

House 8 Road 2

Mohammadi Housing Limited
Mohammadpur, Dhaka 1207

Tel: 017 8888 8844 (Primary)

Tel: 01778 994466 (Alternative)

© 2024 Tanjid's Studio | Sitemap

bottom of page