# htaccess und Umleitung ohne www

**URL:** <https://forum.shopware.com/t/htaccess-und-umleitung-ohne-www/6570>\
**Category:** Shopware 3.5\
**Tags:** installation--gettin\
**Created:** [21. März 2012 um 11:06 UTC](https://forum.shopware.com/t/htaccess-und-umleitung-ohne-www/6570 "2012-03-21T11:06:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bokonzept](https://avatars.discourse-cdn.com/v4/letter/b/2acd7d/32.png) [@bokonzept](https://forum.shopware.com/u/bokonzept)\
**Post date:** [21. März 2012 um 11:06 UTC](https://forum.shopware.com/t/htaccess-und-umleitung-ohne-www/6570/1 "2012-03-21T11:06:52Z")

</div>

Hallo, mein Shop leitet die [www.domain.de](http://www.domain.de) immer um auf [domain.de](http://domain.de) Also ohne www Ich möchte das www aber immer stehen haben Kann mir jemand bei der .htaccess helfen: # Liste der Dateiendungen die als PHP5 verarbeitet werden sollen AddHandler php-fastcgi5 .php .php5 .phtml  
RewriteEngine on

#RewriteBase /shopware/

RewriteRule shopware.dll shopware.php  
RewriteRule files/documents/.\* engine [NC,L]  
RewriteRule application.yaml engine [NC,L]  
RewriteRule images/ayww/(.\*) images/banner/1 RewriteRule sitemap.xml(.\*) shopware.php?controller=SitemapXml RewriteRule templates/.\*(css|js) engine/backend/php/sCacheTemplate.php?file=0 [NC,L] RewriteRule engine/core/php/sAjaxSearch.php engine/backend/php/sAjaxSearch.php [NC,L]  
RewriteRule engine/core/php/campaigns.php$ engine/backend/php/campaigns.php [NC,L]

RewriteCond %{REQUEST\_URI} !(engine/|images/|files/|templates/|.js$|.css$|.jpg$|.png$)  
RewriteCond %{REQUEST\_FILENAME} !-f  
RewriteCond %{REQUEST\_FILENAME} !-d  
RewriteRule ^(.\*)$ shopware.php [PT,L,QSA]  
DirectoryIndex index.php DirectoryIndex shopware.php  
Deny from all  
Options -Indexes # Options -MultiViews # php\_value memory\_limit 128M # php\_value max\_execution\_time 18000 # php\_flag magic\_quotes\_gpc off # php\_flag session.auto\_start off # php\_flag suhosin.session.cryptua off # php\_flag zend.ze1\_compatibility\_mode Off # AddType x-mapp-php5 .php # AddHandler x-mapp-php5 .php Gruß JB

---

<div class="post-metadata">

**Author:** ![SebastianKloepper](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sebastiankloepper/32/21435_2.png) [@SebastianKloepper](https://forum.shopware.com/u/SebastianKloepper)\
**Post date:** [21. März 2012 um 11:12 UTC](https://forum.shopware.com/t/htaccess-und-umleitung-ohne-www/6570/2 "2012-03-21T11:12:11Z")

</div>

Hallo, das hängt nicht mit der htaccess zusammen, sondern ist eine Einstellung in Shopware. Dann wurde das System auf der Domain ohne www installiert und ggf. sind Lizenzen auch auf die Domain ohne www ausgestellt. Anpassen kann man dieses aber über “Einstellungen / Grundeinstellungen / System --\> Subshops” Hauptshop editieren und bei Domain-Alias in der ersten Zeile deine Domain mit www. eintragen. Danach Cache leeren. Der Shop ist dann unter www erreichbar und das Backend weiter ohne www

---

<div class="post-metadata">

**Author:** ![bokonzept](https://avatars.discourse-cdn.com/v4/letter/b/2acd7d/32.png) [@bokonzept](https://forum.shopware.com/u/bokonzept)\
**Post date:** [21. März 2012 um 11:27 UTC](https://forum.shopware.com/t/htaccess-und-umleitung-ohne-www/6570/3 "2012-03-21T11:27:56Z")

</div>

Jetzt bringt der mir eine Fehlermeldung. Keine gültige Subshop-Lizenz gefunden in Shopware/Plugins/Default/Core/Shop/Bootstrap.php on line 115

---

<div class="post-metadata">

**Author:** ![bokonzept](https://avatars.discourse-cdn.com/v4/letter/b/2acd7d/32.png) [@bokonzept](https://forum.shopware.com/u/bokonzept)\
**Post date:** [21. März 2012 um 11:29 UTC](https://forum.shopware.com/t/htaccess-und-umleitung-ohne-www/6570/4 "2012-03-21T11:29:47Z")

</div>

Jetzt gehts. Musste noch den Shophost ändern. DANKE
