---
title: "Discussion on \"How to Force SSL with htaccess\" | Hashnode"
description: "Discussion on \"How to Force SSL with htaccess\". If you have a website running on apache2 and SSL certificate installed, but your visitors are landing on http connection sometimes"
url: "https://hashnode.com/posts/how-to-force-ssl-with-htaccess/62d6c35dd3af5e3713d605a8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Force SSL with htaccess](https://notes.sohag.pro/how-to-force-ssl-with-htaccess?utm_source=hashnode&utm_medium=feed)

If you have a website running on apache2 and SSL certificate installed, but your visitors are landing on http connection sometimes

Jul 19, 2022 · 1 min read · notes.sohag.pro  
Updated Apr 11, 2023  
Read the article

-   [#apache](https://hashnode.com/tag/apache)
-   [#ssl](https://hashnode.com/tag/ssl)
-   [#apache2](https://hashnode.com/tag/apache2)
-   [#htaccess](https://hashnode.com/tag/htaccess)

## Written by

[Sohag Hasan](https://hashnode.com/@sohag)

@sohag · Dhaka, Bangladesh

  
[View profile](https://hashnode.com/@sohag)

Tech Lead at MobyPay | Certified Laravel Developer | PHP JS GO | DevOps Enthusiast | Open to projects

WhoAmI =&gt; notes.sohag.pro/author

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
