# SSL Force

{% hint style="info" %}
**Make sure you have deployed the product before perfuming this solution**
{% endhint %}

Edit the file on your root public folder **.htaccess** and replace the below code.&#x20;

This will force your website to load over https only&#x20;

```
RewriteEngine On 
RewriteCond %{HTTPS} off 
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
```
