# Umleitung &quot;http://&quot; zu &quot;https://&quot;

**URL:** <https://forum.shopware.com/t/umleitung-quot-http-quot-zu-quot-https-quot/30447>\
**Category:** Administration\
**Created:** [12. September 2015 um 15:36 UTC](https://forum.shopware.com/t/umleitung-quot-http-quot-zu-quot-https-quot/30447 "2015-09-12T15:36:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![shop1](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@shop1](https://forum.shopware.com/u/shop1)\
**Post date:** [12. September 2015 um 15:36 UTC](https://forum.shopware.com/t/umleitung-quot-http-quot-zu-quot-https-quot/30447/1 "2015-09-12T15:36:00Z")

</div>

Hallo ich habe ein Commodo SSL-Zertifikat in meinem Shop installiert. Alle Seiten sind unter “https://” erreichbar. Was ich mir allerdings wünschen würde ist, dass bei der Eingabe “[http://meinedomain.de](http://meinedomain.de)” automatisch die sichere Seite “[https://meinedomain.de](https://meinedomain.de)” angezeigt wird. Ich habe dazu gemäss der Anleitung im Wiki folgenden Code in die .htaccess eingebaut und den Cache gelöscht: RewriteCond %{HTTPS} !=on RewriteRule (.\*) https://%{HTTP\_HOST}%{REQUEST\_URI} [L,R=301] Leider wird immer noch “[http://meinedomain.de](http://meinedomain.de)” angegeben, wenn man den Shop mit “[http://meinedomain.de](http://meinedomain.de)” aufruft. Kann mir da jemand weiterhelfen?

---

<div class="post-metadata">

**Author:** ![Shopwareianer](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Shopwareianer](https://forum.shopware.com/u/Shopwareianer)\
**Post date:** [12. September 2015 um 15:42 UTC](https://forum.shopware.com/t/umleitung-quot-http-quot-zu-quot-https-quot/30447/2 "2015-09-12T15:42:26Z")

</div>

[https://www.google.de/webhp?sourceid=ch … s+redirect](https://www.google.de/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=htaccess+http+to+https+redirect)

---

<div class="post-metadata">

**Author:** ![shop1](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@shop1](https://forum.shopware.com/u/shop1)\
**Post date:** [12. September 2015 um 16:22 UTC](https://forum.shopware.com/t/umleitung-quot-http-quot-zu-quot-https-quot/30447/3 "2015-09-12T16:22:32Z")

</div>

[quote=“kayyy”][Google](https://www.google.de/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=htaccess+http+to+https+redirect%5B/quote%5D) Hallo kayyy, danke für deine Antwort. Leider hilft mir das nicht weiter. Auf jeder Seite scheint was anderes zu stehen. So wie im Wiki [http://community.shopware.com/Umleitung … \_1863.html](http://community.shopware.com/Umleitung-aller-Aufrufe-auf-HTTPS-Domain%5C_detail%5C_1863.html) funktioniert es auch nicht. Könnte es daran liegen, dass es sich um eine .sale Domain handelt?

---

<div class="post-metadata">

**Author:** ![Shopwareianer](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Shopwareianer](https://forum.shopware.com/u/Shopwareianer)\
**Post date:** [12. September 2015 um 16:23 UTC](https://forum.shopware.com/t/umleitung-quot-http-quot-zu-quot-https-quot/30447/4 "2015-09-12T16:23:40Z")

</div>

Du hast aber einen Apache Webserver und keinen nginx oder?

---

<div class="post-metadata">

**Author:** ![shop1](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@shop1](https://forum.shopware.com/u/shop1)\
**Post date:** [12. September 2015 um 16:30 UTC](https://forum.shopware.com/t/umleitung-quot-http-quot-zu-quot-https-quot/30447/5 "2015-09-12T16:30:08Z")

</div>

[quote=“kayyy”]Du hast aber einen Apache Webserver und keinen nginx oder?[/quote] Ich habe einen nginx 1.9.4 Webserver mit Varnish.

---

<div class="post-metadata">

**Author:** ![Shopwareianer](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Shopwareianer](https://forum.shopware.com/u/Shopwareianer)\
**Post date:** [12. September 2015 um 16:46 UTC](https://forum.shopware.com/t/umleitung-quot-http-quot-zu-quot-https-quot/30447/6 "2015-09-12T16:46:16Z")

</div>

[quote=“shop1”][quote=“kayyy”]Du hast aber einen Apache Webserver und keinen nginx oder?[/quote] Ich habe einen nginx 1.9.4 Webserver mit Varnish.[/quote] Varnish bringt zwar nix bei nginx - aber nun gut ^^ nginx ignoriert natürlich die .htaccess Datei. .htaccess Dateien sind nur für Apache Webserver. [https://www.google.de/webhp?sourceid=ch … edirection](https://www.google.de/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=nginx%20http%20to%20https%20redirection) Du brauchst entsprechend eine nginx rewrite rule.

---

<div class="post-metadata">

**Author:** ![shop1](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@shop1](https://forum.shopware.com/u/shop1)\
**Post date:** [12. September 2015 um 16:54 UTC](https://forum.shopware.com/t/umleitung-quot-http-quot-zu-quot-https-quot/30447/7 "2015-09-12T16:54:44Z")

</div>

[quote=„kayyy“] nginx ignoriert natürlich die .htaccess Datei. .htaccess Dateien sind nur für Apache Webserver. Du brauchst entsprechend eine nginx rewrite rule.[/quote] In welche Datei kommt die nginx rewrite rule? Wie sieht so eine Regel aus?

---

<div class="post-metadata">

**Author:** ![Shopwareianer](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Shopwareianer](https://forum.shopware.com/u/Shopwareianer)\
**Post date:** [12. September 2015 um 16:56 UTC](https://forum.shopware.com/t/umleitung-quot-http-quot-zu-quot-https-quot/30447/8 "2015-09-12T16:56:17Z")

</div>

in deiner vhost Datei. In /etc/nginx/sites-available/deinevhost Ansonsten frage deinen Hoster bzgl. der Rule.

---

<div class="post-metadata">

**Author:** ![danielwe](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@danielwe](https://forum.shopware.com/u/danielwe)\
**Post date:** [12. September 2015 um 19:20 UTC](https://forum.shopware.com/t/umleitung-quot-http-quot-zu-quot-https-quot/30447/9 "2015-09-12T19:20:06Z")

</div>

Je nachdem welche nginx version genutzt wird, findest du die .conf datei hier: `/etc/nginx/conf.d/ ` oder hier: `/etc/nginx/sites-available/` wenn du die datei anhängst bzw. den content postest kann ich helfen 🙂
