# .htaccess Problem

**URL:** <https://forum.shopware.com/t/htaccess-problem/11632>\
**Category:** Shopware 3.5\
**Tags:** installation--gettin\
**Created:** [15. Februar 2013 um 18:19 UTC](https://forum.shopware.com/t/htaccess-problem/11632 "2013-02-15T18:19:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabianknorr](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@fabianknorr](https://forum.shopware.com/u/fabianknorr)\
**Post date:** [15. Februar 2013 um 18:19 UTC](https://forum.shopware.com/t/htaccess-problem/11632/1 "2013-02-15T18:19:34Z")

</div>

Hallo liebe Shopware Community, ich habe folgendes Problem: Nach erfolgreicher Installation kann ich weder Backend noch Frontend erreichen. Wenn ich nun eine .htaccess einrichte [code]  
RewriteEngine on

#RewriteBase /httpdocs/

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[/code] ist beides erreichbar, allerdings werden keine .css etc geladen. Wenn ich #RewriteEngine on setzte erreiche ich das Frontend mit .css aber nicht mehr das Backend … brauche eure Hilfe! Danke!

---

<div class="post-metadata">

**Author:** ![aikanet](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@aikanet](https://forum.shopware.com/u/aikanet)\
**Post date:** [15. Februar 2013 um 21:10 UTC](https://forum.shopware.com/t/htaccess-problem/11632/2 "2013-02-15T21:10:34Z")

</div>

RewriteBase mal testweise gesetzt?

---

<div class="post-metadata">

**Author:** ![fabianknorr](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@fabianknorr](https://forum.shopware.com/u/fabianknorr)\
**Post date:** [15. Februar 2013 um 21:14 UTC](https://forum.shopware.com/t/htaccess-problem/11632/3 "2013-02-15T21:14:46Z")

</div>

Habe ich probiert ja! Alle Varianten die mir einfallen … Ich wüsste echt nicht mehr woran es noch liegen kann… Ich habe Firebug benutzt der hat mir als Fehler lauter 404 ausgegeben, was die CSS angeht …

---

<div class="post-metadata">

**Author:** ![aikanet](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@aikanet](https://forum.shopware.com/u/aikanet)\
**Post date:** [15. Februar 2013 um 22:05 UTC](https://forum.shopware.com/t/htaccess-problem/11632/4 "2013-02-15T22:05:20Z")

</div>

Das Rewrite funktioniert aber - es können also andere Seiten außer die Shop-Home-Seite im Shop-Frontend aufgerufen werden und es fehlen wirklich nur die CSS-Dateien? Ich würde zudem mal die Pfade im HTML mit denen einer funktionierenden Seite ([shopwaredemo.de](http://shopwaredemo.de)) vergleichen. Mehr fällt mir aus der Ferne auch nicht ein.

---

<div class="post-metadata">

**Author:** ![fabianknorr](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@fabianknorr](https://forum.shopware.com/u/fabianknorr)\
**Post date:** [16. Februar 2013 um 13:27 UTC](https://forum.shopware.com/t/htaccess-problem/11632/5 "2013-02-16T13:27:29Z")

</div>

Das Rewrite funktioniert richtig. `"NetworkError: 404 Not Found - http://knorr-web-solutions.de/templates/\_default/frontend/\_resources/styles/framework.css" framework.css "NetworkError: 404 Not Found - http://knorr-web-solutions.de/templates/\_default/frontend/\_resources/styles/style.css" style.css "NetworkError: 404 Not Found - http://knorr-web-solutions.de/templates/\_default/frontend/\_resources/styles/colors.css" colors.css "NetworkError: 404 Not Found - http://knorr-web-solutions.de/templates/\_default/frontend/\_resources/styles/plugins.css" plugins.css "NetworkError: 404 Not Found - http://knorr-web-solutions.de/templates/\_default/frontend/\_resources/styles/enrichments.css" enrichments.css "NetworkError: 404 Not Found - http://knorr-web-solutions.de/templates/\_emotion/frontend/\_resources/styles/emotion.css" emotion.css "NetworkError: 404 Not Found - http://knorr-web-solutions.de/templates/\_emotion/frontend/\_resources/styles/print.css" print.css ` Das gibt Firebug aus … irgendwie ist das wirklich komisch! Die Daten liegen aber richtig. Es ist keine Subdomain, deshalb müsste es ja auch ohne RewriteBase funktionierten aber nichts …

---

<div class="post-metadata">

**Author:** ![fabianknorr](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@fabianknorr](https://forum.shopware.com/u/fabianknorr)\
**Post date:** [18. Februar 2013 um 12:37 UTC](https://forum.shopware.com/t/htaccess-problem/11632/6 "2013-02-18T12:37:33Z")

</div>

Ich habe nun den Webspace neu aufgesetzt und das Check-Tool hochgeladen. Da fiel mir auf, dass das Check-Tool beim ausführen auch keine CSS anzeigt … Werde fleissig weitertesten. Aber irgendwie scheint es ja ein Serverproblem zu sein… LG

---

<div class="post-metadata">

**Author:** ![fabianknorr](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@fabianknorr](https://forum.shopware.com/u/fabianknorr)\
**Post date:** [20. Februar 2013 um 14:03 UTC](https://forum.shopware.com/t/htaccess-problem/11632/7 "2013-02-20T14:03:50Z")

</div>

Anpassung der .htaccess: [code]  
RewriteEngine on

#RewriteBase /

#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[/code]
