# Wordpress in Unterverzeichnis /public/wordpress?

**URL:** <https://forum.shopware.com/t/wordpress-in-unterverzeichnis-public-wordpress/99587>\
**Category:** Administration\
**Created:** [8. Mai 2023 um 09:12 UTC](https://forum.shopware.com/t/wordpress-in-unterverzeichnis-public-wordpress/99587 "2023-05-08T09:12:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunflower](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sunflower/32/8100_2.png) [@sunflower](https://forum.shopware.com/u/sunflower)\
**Post date:** [8. Mai 2023 um 09:12 UTC](https://forum.shopware.com/t/wordpress-in-unterverzeichnis-public-wordpress/99587/1 "2023-05-08T09:12:15Z")

</div>

Hallo zusammen,

ist es möglich, eine Wordpress-Installation in das Shopware public-Verzeichnis zu legen?  
Mein erster Versuch scheiterte. Als Websserver ist nginx im Einsatz, also kein htaccess.

Unser Wunsch:

- [https://www.unsere-domain.de](https://www.unsere-domain.de) ← Shopware 6
- [https://www.unsere-domain.de/info](https://www.unsere-domain.de/info) ← Wordpress

Ich kann auch kein einfaches Verzeichnis mit einer HTML-Datei in public aufrufen.

Funktioniert das wegen Symfony nicht? Gibt es da evtl. einen Trick?

Grüße  
sunflower

---

<div class="post-metadata">

**Author:** ![SCOOPEX](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/scoopex/32/18328_2.png) [@SCOOPEX](https://forum.shopware.com/u/SCOOPEX)\
**Post date:** [8. Mai 2023 um 09:21 UTC](https://forum.shopware.com/t/wordpress-in-unterverzeichnis-public-wordpress/99587/2 "2023-05-08T09:21:33Z")

</div>

Hi,

möglich wird es sein - die nginx Direktiven müssen jedoch angepasst werden - im Zweifel den Hoster kontaktieren.

Bei einem Apache Server ist folgende .htaccess Regel dafür verantwortlich, dass alles auf den Shop geroutet wird:

```auto
    # Rewrite all other queries to the front controller.
    RewriteRule ^ %{ENV:BASE}/index.php [L]

```

Viele Grüße

---

<div class="post-metadata">

**Author:** ![sunflower](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sunflower/32/8100_2.png) [@sunflower](https://forum.shopware.com/u/sunflower)\
**Post date:** [9. Mai 2023 um 12:44 UTC](https://forum.shopware.com/t/wordpress-in-unterverzeichnis-public-wordpress/99587/3 "2023-05-09T12:44:10Z")

</div>

War tatsächlich eine Config-Einstellung im Server.

---

<div class="post-metadata">

**Author:** ![hallo1](https://avatars.discourse-cdn.com/v4/letter/h/7993a0/32.png) [@hallo1](https://forum.shopware.com/u/hallo1)\
**Post date:** [12. Oktober 2023 um 12:08 UTC](https://forum.shopware.com/t/wordpress-in-unterverzeichnis-public-wordpress/99587/4 "2023-10-12T12:08:03Z")

</div>

@sunflower Magst Du verraten welche Einstellung es war? Wir haben gerade das gleiche Problem.

---

<div class="post-metadata">

**Author:** ![sunflower](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sunflower/32/8100_2.png) [@sunflower](https://forum.shopware.com/u/sunflower)\
**Post date:** [12. Oktober 2023 um 13:17 UTC](https://forum.shopware.com/t/wordpress-in-unterverzeichnis-public-wordpress/99587/5 "2023-10-12T13:17:45Z")

</div>

Das Projekt liegt bei Timmehosting und da kann man für eine Website(Shopware) bei den erweiterten Einstellungen" die Konfiguration für Wordpress mit einem eigenen Document-Root anlegen.  
Mein Problem lag darin, dass ich das WP-Verzeichnis unterhalb des Shopware public Verzeichnis gelegt hatte. Das funktionierte nicht. Parallel zum public Verzeichnis war es dann ok.

---

<div class="post-metadata">

**Author:** ![hallo1](https://avatars.discourse-cdn.com/v4/letter/h/7993a0/32.png) [@hallo1](https://forum.shopware.com/u/hallo1)\
**Post date:** [13. Oktober 2023 um 08:17 UTC](https://forum.shopware.com/t/wordpress-in-unterverzeichnis-public-wordpress/99587/6 "2023-10-13T08:17:34Z")

</div>

@sunflower Danke für die Rückmeldung. Erreichbar ist der Blog aber trotzdem über Shopdomain/wordpress?

---

<div class="post-metadata">

**Author:** ![sunflower](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sunflower/32/8100_2.png) [@sunflower](https://forum.shopware.com/u/sunflower)\
**Post date:** [13. Oktober 2023 um 10:08 UTC](https://forum.shopware.com/t/wordpress-in-unterverzeichnis-public-wordpress/99587/7 "2023-10-13T10:08:39Z")

</div>

ja, bei uns hat das funktioniert

---

<div class="post-metadata">

**Author:** ![hallo1](https://avatars.discourse-cdn.com/v4/letter/h/7993a0/32.png) [@hallo1](https://forum.shopware.com/u/hallo1)\
**Post date:** [16. Oktober 2023 um 09:06 UTC](https://forum.shopware.com/t/wordpress-in-unterverzeichnis-public-wordpress/99587/8 "2023-10-16T09:06:34Z")

</div>

@sunflower Danke für die Hilfe. Bei unserem Hoster gibt es diese Option nicht. Könntest Du den Inhalt Deiner htaccess Datei teilen? Die im selben Verzeichnis ist wie der public ordner, ich vermute das hier die Anpassung passiert damit es weitergeleitet wird.

---

<div class="post-metadata">

**Author:** ![sunflower](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sunflower/32/8100_2.png) [@sunflower](https://forum.shopware.com/u/sunflower)\
**Post date:** [16. Oktober 2023 um 14:16 UTC](https://forum.shopware.com/t/wordpress-in-unterverzeichnis-public-wordpress/99587/9 "2023-10-16T14:16:30Z")

</div>

Sorry, kann ich leider nicht, da der Server mit nginx läuft und da gibt es keine htaccess-Datei.
