# Www. und http auf https umleiten

**URL:** https://forum.shopware.com/t/www-und-http-auf-https-umleiten/27779
**Category:** Installation/Einstieg
**Created:** [31. Mai 2015 um 10:41 UTC](https://forum.shopware.com/t/www-und-http-auf-https-umleiten/27779 "2015-05-31T10:41:09Z")
**Posts on this page:** 2
**Page:** 2

<div class="post-metadata">

### Author: ![TimmeHosting](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/timmehosting/32/15580_2.png) [@TimmeHosting](https://forum.shopware.com/u/TimmeHosting)
#### Post date: [5. März 2017 um 13:12 UTC](https://forum.shopware.com/t/www-und-http-auf-https-umleiten/27779/21 "2017-03-05T13:12:07Z")

</div>

> [@jo\_miltenberger schrieb:](https://forum.shopware.com/profile/25159/jo_miltenberger "jo\_miltenberger")
> 
> Danke!&nbsp;
> 
> Gibt es auch eine Shopware Einstellung, die es möglich macht, dass direkt von [http://domain.de](http://domain.de) auf [https://www.domain.de](https://www.domain.de) weitergeleitet wird?&nbsp;
> 
> Dann wäre das Problem mit dem SSL Zertifikat gelöst, das wirklich nur für www.gültig ist. Und die Anzahl der Weiterleitungen&nbsp;auch reduziert. Die jetzige Form mit zwei Weiterleitungen&nbsp;meckert Google auch auf PageSpeed Insights an.
> 
> Grüße&nbsp;

Wie sonic geschrieben hat, würde ich das über eine Rewrite Rule lösen. Allerdings bekommt ein Besucher immer noch eine Zertifikatswarnung, wenn er [https://domain.de](https://domain.de) aufruft statt [http://domain.de](http://domain.de). Daher solltest Du Dir ggf. Dein Zertifikat noch einmal ausstellen lassen (gültig für [www.domain.de](http://www.domain.de) und [domain.de](http://domain.de)).

![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/385eaa628505df573ebf33722f780335f53ac1b2.png)

Timme Hosting - schnelles nginx-Hosting

[www.timmehosting.de](https://timmehosting.de/)

---

<div class="post-metadata">

### Author: ![jo\_miltenberger](https://avatars.discourse-cdn.com/v4/letter/j/dec6dc/32.png) [@jo\_miltenberger](https://forum.shopware.com/u/jo_miltenberger)
#### Post date: [8. März 2017 um 10:30 UTC](https://forum.shopware.com/t/www-und-http-auf-https-umleiten/27779/22 "2017-03-08T10:30:33Z")

</div>

> [@sonic schrieb:](https://forum.shopware.com/profile/16285/sonic "sonic")
> 
> Das müsste doch einfach mit einer Kombination von zwei RewriteCond am Anfang der htaccess gehen
> 
> RewriteCond %{HTTPS} !=on [or]  
> RewriteCond %{HTTP\_HOST} (^domain.de$)  
> RewriteRule (.\*) [https://www](https://www).\domain.de}%{REQUEST\_URI} [L,R=301]
> 
> Hat pria funktioniert! Danke.
> 
> &nbsp;

[Vorherige Seite](https://forum.shopware.com/t/www-und-http-auf-https-umleiten/27779.md?page=1)
