# Umlweitung für Links ohne www

**URL:** <https://forum.shopware.com/t/umlweitung-fur-links-ohne-www/18858>\
**Category:** Shopware 3.5\
**Tags:** other\
**Created:** [5. März 2014 um 14:32 UTC](https://forum.shopware.com/t/umlweitung-fur-links-ohne-www/18858 "2014-03-05T14:32:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwhardware](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@mwhardware](https://forum.shopware.com/u/mwhardware)\
**Post date:** [5. März 2014 um 14:32 UTC](https://forum.shopware.com/t/umlweitung-fur-links-ohne-www/18858/1 "2014-03-05T14:32:00Z")

</div>

Guten Tag, vielleicht kann mir einer schnell sagen, wie ich das Problem Löse: wenn ich von einem Produktlink das „www.“ entferne, zeigt shopware leider immer nur die Hauptdomain an und nicht das Produkt. Bei Hostalias ist einmal die Hauptdomain mit www. und einmal ohne eingetragen. Lässt sich das beheben? Habe es mal hiermit versucht: `## #Domain ohne www umleiten ## RewriteCond %{HTTP\_HOST} ^domain\.at$ [NC] RewriteRule ^(.\*)$ http://www.domain.at/$1 [R=301,L]` Was ich aus [diesem](http://forum.shopware.de/sonstiges-f15/htaccess-domain-ohne-www-umleiten-t1135.html) Beitrag habe. Hat aber nicht funktioniert -\> selbes Szenario. Viele Grüße

---

<div class="post-metadata">

**Author:** ![mwhardware](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@mwhardware](https://forum.shopware.com/u/mwhardware)\
**Post date:** [6. März 2014 um 11:54 UTC](https://forum.shopware.com/t/umlweitung-fur-links-ohne-www/18858/2 "2014-03-06T11:54:37Z")

</div>

Keine eine Idee?

---

<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:** [6. März 2014 um 12:03 UTC](https://forum.shopware.com/t/umlweitung-fur-links-ohne-www/18858/3 "2014-03-06T12:03:17Z")

</div>

Hast du evtl. einmal die URL zum Shop ?

---

<div class="post-metadata">

**Author:** ![mwhardware](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@mwhardware](https://forum.shopware.com/u/mwhardware)\
**Post date:** [6. März 2014 um 13:33 UTC](https://forum.shopware.com/t/umlweitung-fur-links-ohne-www/18858/4 "2014-03-06T13:33:56Z")

</div>

Danke für deine Antwort. [www.meerwasser-hardware.de](http://www.meerwasser-hardware.de) ist die URL.

---

<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:** [6. März 2014 um 13:36 UTC](https://forum.shopware.com/t/umlweitung-fur-links-ohne-www/18858/5 "2014-03-06T13:36:33Z")

</div>

Dann wird es das gleiche Problem sein. In Shopware ist www angegeben, für Shopware existiert der Artikel ohne www aber nicht, daher wird man zurück auf die Startseite geschmissen.

---

<div class="post-metadata">

**Author:** ![mwhardware](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@mwhardware](https://forum.shopware.com/u/mwhardware)\
**Post date:** [6. März 2014 um 13:38 UTC](https://forum.shopware.com/t/umlweitung-fur-links-ohne-www/18858/6 "2014-03-06T13:38:31Z")

</div>

Deswegen wollte ich ja, dass der Webserver ein „www.“ davor schreib, damit shopware weiß was zu tun ist, oder ist das der falsche Ansatz? bzw. wie löse ich das Problem aqdequat?

---

<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:** [6. März 2014 um 13:40 UTC](https://forum.shopware.com/t/umlweitung-fur-links-ohne-www/18858/7 "2014-03-06T13:40:32Z")

</div>

[quote=“mwhardware”]Deswegen wollte ich ja, dass der Webserver ein “www.” davor schreib, damit shopware weiß was zu tun ist, oder ist das der falsche Ansatz? bzw. wie löse ich das Problem aqdequat?[/quote] Wir haben es auf unseren nginx Servern über den Redirect in der nginx Config gelöst ( bei Apache eben mod\_rewrite )

---

<div class="post-metadata">

**Author:** ![mwhardware](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@mwhardware](https://forum.shopware.com/u/mwhardware)\
**Post date:** [6. März 2014 um 13:43 UTC](https://forum.shopware.com/t/umlweitung-fur-links-ohne-www/18858/8 "2014-03-06T13:43:59Z")

</div>

Also auch so … und siehe da, auf einmal geht es. Ich hab das selbe gestern auch gemacht und jetzt geht es wohl…

---

<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:** [6. März 2014 um 13:55 UTC](https://forum.shopware.com/t/umlweitung-fur-links-ohne-www/18858/9 "2014-03-06T13:55:38Z")

</div>

Was hast du denn im Backend nun ganz genau angegeben ? Kannst du einen Screenshot machen ? Welchen Fehler gibt er noch gleich aus, wenn du die Rewrite Rule in die htaccess einfügst ?
