# Force SSL

**URL:** <https://forum.shopware.com/t/force-ssl/58518>\
**Category:** International (English Only)\
**Tags:** general\
**Created:** [12. März 2019 um 10:59 UTC](https://forum.shopware.com/t/force-ssl/58518 "2019-03-12T10:59:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![roberto](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@roberto](https://forum.shopware.com/u/roberto)\
**Post date:** [12. März 2019 um 10:59 UTC](https://forum.shopware.com/t/force-ssl/58518/1 "2019-03-12T10:59:27Z")

</div>

Hi all,

I’m trying to get this working but no luck so far. When a visitor gets to the site it loades a non secure page, clicking any link will redirect to the SSL version of the site but this is not happening the first time you visit the site. I tried to follow this docu [Shopware 5 - Tutorials & FAQs - set up SSL certificate in the shop](https://docs.shopware.com/en/shopware-5-en/tutorials-and-faq/set-up-ssl-certificate-in-the-shop) but they “Always use SSL” option it’s not there anymore and using the htaccess options generates a redirection loop.

Run out of ideas to fix this, will appreciate any help

Thanks

---

<div class="post-metadata">

**Author:** ![Shopwarespecialist](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Shopwarespecialist](https://forum.shopware.com/u/Shopwarespecialist)\
**Post date:** [18. März 2019 um 19:06 UTC](https://forum.shopware.com/t/force-ssl/58518/2 "2019-03-18T19:06:40Z")

</div>

Hi Roberto!

Could you please try the following in your vhost file?:

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

```

That should solve your problem!

&nbsp;
