# Shopware 6 - http auf https

**URL:** <https://forum.shopware.com/t/shopware-6-http-auf-https/93361>\
**Category:** Installation / Einstieg\
**Created:** [10. März 2022 um 17:49 UTC](https://forum.shopware.com/t/shopware-6-http-auf-https/93361 "2022-03-10T17:49:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sven-sw](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sven-sw](https://forum.shopware.com/u/sven-sw)\
**Post date:** [10. März 2022 um 17:49 UTC](https://forum.shopware.com/t/shopware-6-http-auf-https/93361/1 "2022-03-10T17:49:20Z")

</div>

Hallo, wie muss ich was wo ändern damit auf meine Shopware nur per https://… zugreifen kann?

Zur kann ich gar nicht per https://… auf SW Instanz zugreifen.

Ein alter Thread:

> [@Hauptshop mit https, Subshop mit http (ohne https), htaccess config wie?](https://forum.shopware.com/t/hauptshop-mit-https-subshop-mit-http-ohne-https-htaccess-config-wie/42846):
>
> Hallo, stehe leider an und stundenlange Suche brachte nicht den Erfolg. Ich habe einen Hauptshop mit SSL unter [https://www.domain.at](https://www.domain.at) (läuft mit https) und hätte gerne einen Subshop ohne SSL (weil noch kein Zertifikat) unter [http://www.domain.de](http://www.domain.de) Die [www.domain.de](http://www.domain.de) (Subshop-Domain) verweist auf den richtigen Server (lt. tracert) und das richtige Verzeichnis. Wenn ich die eula.txt aufrufe, geht die nur beim Hauptshop, nicht bei der [www.domain.de](http://www.domain.de) Subshop Domain. Er will hier immer auf https weite…

Ein Domain habe ich nicht, nur eine IPv4 Adresse.

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [10. März 2022 um 17:53 UTC](https://forum.shopware.com/t/shopware-6-http-auf-https/93361/2 "2022-03-10T17:53:27Z")

</div>

Entweder

- auf deinem Server eine Weiterleitung auf https einstellen
- in der htaccess oder nginx eine Weiterleitung auf https einstellen
- den Verkaufskanal mit http löschen.

[https://lenz-ebusiness.de/knowledge-base/artikel/shopware-6-ssl-https-weiterleitung-im-gesamten-shop-einrichten./](https://lenz-ebusiness.de/knowledge-base/artikel/shopware-6-ssl-https-weiterleitung-im-gesamten-shop-einrichten./)

---

<div class="post-metadata">

**Author:** ![sven-sw](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sven-sw](https://forum.shopware.com/u/sven-sw)\
**Post date:** [10. März 2022 um 17:55 UTC](https://forum.shopware.com/t/shopware-6-http-auf-https/93361/3 "2022-03-10T17:55:51Z")

</div>

/var/www/html/.htaccess

```auto
DirectoryIndex index.html index.php

<IfModule mod_negotiation.c>
    Options -MultiViews
</IfModule>

<IfModule mod_alias.c>
    # Restrict access to VCS directories
    RedirectMatch 404 /\\.(svn|git|hg|bzr|cvs)(/|$)

    # Restrict access to root folder files
    RedirectMatch 404 /(composer\.(json|lock|phar)|README\.md|\.gitignore|.*\.dist|\.env.*)$
</IfModule>

```

Einen Apache2 Server nutze ich, was muss ich ändern?

Oder welche Lösung der 3 ist am besten?

---

<div class="post-metadata">

**Author:** ![mr.unschuldig](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mr.unschuldig](https://forum.shopware.com/u/mr.unschuldig)\
**Post date:** [10. März 2022 um 18:55 UTC](https://forum.shopware.com/t/shopware-6-http-auf-https/93361/4 "2022-03-10T18:55:56Z")

</div>

Grob sollte Dir das zum Lernen und Hilfe zur Selbsthilfe dienen:

[https://wiki.pratznschutz.com/index.php/Apache\_2\_HTTPS\_erzwingen](https://wiki.pratznschutz.com/index.php/Apache_2_HTTPS_erzwingen)

---

<div class="post-metadata">

**Author:** ![sven-sw](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sven-sw](https://forum.shopware.com/u/sven-sw)\
**Post date:** [11. März 2022 um 06:01 UTC](https://forum.shopware.com/t/shopware-6-http-auf-https/93361/5 "2022-03-11T06:01:29Z")

</div>

> [@Max\_Shop](#):
>
> Entweder
> 
> - auf deinem Server eine Weiterleitung auf https einstellen
> - in der htaccess oder nginx eine Weiterleitung auf https einstellen
> - den Verkaufskanal mit http löschen.
> 
> [Shopware 6 SSL - https-Weiterleitung im gesamten Shop einrichten. - LENZ eBusiness GmbH](https://lenz-ebusiness.de/knowledge-base/artikel/shopware-6-ssl-https-weiterleitung-im-gesamten-shop-einrichten./)

Hallo, kann ich die Lenz Anleitung auch mit einer IP-Adresse (keine Domain) nutzen?

MfG  
sven-sw

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [11. März 2022 um 10:05 UTC](https://forum.shopware.com/t/shopware-6-http-auf-https/93361/6 "2022-03-11T10:05:15Z")

</div>

Wenn du eine IP angibst, dann wird nur die IP umgeleitet und nicht die Domain. Aber ja, das sollte gehen.
