# Shopware geht nicht mehr - 404 File Not Found

**URL:** https://forum.shopware.com/t/shopware-geht-nicht-mehr-404-file-not-found/47184
**Category:** Administration
**Created:** [31. Juli 2017 um 10:08 UTC](https://forum.shopware.com/t/shopware-geht-nicht-mehr-404-file-not-found/47184 "2017-07-31T10:08:23Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![cheffie](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@cheffie](https://forum.shopware.com/u/cheffie)
#### Post date: [31. Juli 2017 um 10:08 UTC](https://forum.shopware.com/t/shopware-geht-nicht-mehr-404-file-not-found/47184/1 "2017-07-31T10:08:23Z")

</div>

Hallo 🙂

Immer wenn ich auf die Shopware Hauptseite zugreifen will kommt folgende Meldung:&nbsp;404 File Not Found

access.log&nbsp;

```
127.0.0.1 - - [31/Jul/2017:11:54:20 +0200] "GET / HTTP/1.0" 404

127.0.0.1 - - [31/Jul/2017:11:51:45 +0200] "GET /eula.txt HTTP/1.0" 200

```

Zugriff auf eula.txt funktioniert und zeigt die Datei an, also vermute ich auf ein .htaccess Problem.

Wenn ich im Hauptverzeichnis eine HTML Testseite anlege (index.html) erscheint diese auch problemlos.

htaccess:

```
RewriteEngine on

#RewriteBase /shopware/

# Https config for the backend
#RewriteCond %{HTTPS} !=on
#RewriteRule backend/(.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteRule shopware.dll shopware.php
RewriteRule files/documents/.* engine [NC,L]
RewriteRule backend/media/(.*) media/$1 [NC,L]

RewriteCond %{REQUEST_URI} !(\/(engine|files|templates|themes|web)\/)
RewriteCond %{REQUEST_URI} !(\/media\/(archive|banner|image|music|pdf|unknown|video)\/)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ shopware.php [PT,L,QSA]

# Fix missing authorization-header on fast_cgi installations
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

    # Block access to VCS directories
    RedirectMatch 404 /\\.(svn|git|hg|bzr|cvs)(/|$)

    # Restrict access to root folder files
    RedirectMatch 404 /(composer\.(json|lock)|README\.md|UPGRADE\.md)$

# Staging environment
#SetEnvIf Host "staging.test.shopware.in" SHOPWARE_ENV=staging

# Development environment
#SetEnvIf Host "dev.shopware.in" SHOPWARE_ENV=dev
#SetEnv SHOPWARE_ENV dev

DirectoryIndex index.html
DirectoryIndex index.php
DirectoryIndex shopware.php

# Disables download of configuration

    # Deny all requests from Apache 2.4+.
    
          Require all denied
    

    # Deny all requests from Apache 2.0-2.2.
    
        Deny from all
    

# Enable gzip compression

    AddOutputFilterByType DEFLATE text/html text/xml text/plain text/css text/javascript application/javascript application/json

    
        ExpiresActive on
        ExpiresDefault "access plus 1 month"
    

    
        Header append Cache-Control "public"
        Header unset ETag
    

    FileETag None

# Match generated files like:
# 1429684458_t22_s1.css
# 1429684458_t22_s1.js

    
        Header set Cache-Control "max-age=31536000, public"
    

    
        ExpiresActive on
        ExpiresDefault "access plus 1 year"
    

# Disables auto directory index

	Options -Indexes

    Options -MultiViews

# php_value memory_limit 256M
# php_value max_execution_time 120
# php_value upload_max_filesize 20M
   php_flag phar.readonly off
   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
   php_value always_populate_raw_post_data -1

# AddType x-mapp-php5 .php
# AddHandler x-mapp-php5 .php

    Header append X-Frame-Options SAMEORIGIN

```

Im vhost steht Allowoverride auf all:

```
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all

```

&nbsp;

---

<div class="post-metadata">

### Author: ![NextMike](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@NextMike](https://forum.shopware.com/u/NextMike)
#### Post date: [31. Juli 2017 um 10:12 UTC](https://forum.shopware.com/t/shopware-geht-nicht-mehr-404-file-not-found/47184/2 "2017-07-31T10:12:21Z")

</div>

Ist mod\_rewrite aktiv?

---

<div class="post-metadata">

### Author: ![cheffie](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@cheffie](https://forum.shopware.com/u/cheffie)
#### Post date: [31. Juli 2017 um 10:15 UTC](https://forum.shopware.com/t/shopware-geht-nicht-mehr-404-file-not-found/47184/3 "2017-07-31T10:15:56Z")

</div>

a2enmod rewrite  
Module rewrite already enabled

---

<div class="post-metadata">

### Author: ![NextMike](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@NextMike](https://forum.shopware.com/u/NextMike)
#### Post date: [31. Juli 2017 um 10:19 UTC](https://forum.shopware.com/t/shopware-geht-nicht-mehr-404-file-not-found/47184/4 "2017-07-31T10:19:15Z")

</div>

Verwende mal die Original .htaccess

Weißt Du wer und wozu die Anpassungen daran vorgenommen hatte?

---

<div class="post-metadata">

### Author: ![cheffie](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@cheffie](https://forum.shopware.com/u/cheffie)
#### Post date: [31. Juli 2017 um 10:22 UTC](https://forum.shopware.com/t/shopware-geht-nicht-mehr-404-file-not-found/47184/5 "2017-07-31T10:22:23Z")

</div>

Ist das nicht das Original?

[https://github.com/shopware/shopware/blob/5.3/.htaccess](https://github.com/shopware/shopware/blob/5.3/.htaccess)

---

<div class="post-metadata">

### Author: ![NextMike](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@NextMike](https://forum.shopware.com/u/NextMike)
#### Post date: [31. Juli 2017 um 10:23 UTC](https://forum.shopware.com/t/shopware-geht-nicht-mehr-404-file-not-found/47184/6 "2017-07-31T10:23:11Z")

</div>

OK, die ist Original.

---

<div class="post-metadata">

### Author: ![Teddie](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/teddie/32/26013_2.png) [@Teddie](https://forum.shopware.com/u/Teddie)
#### Post date: [31. Juli 2017 um 10:36 UTC](https://forum.shopware.com/t/shopware-geht-nicht-mehr-404-file-not-found/47184/7 "2017-07-31T10:36:01Z")

</div>

Sind die Rechte richtig?

---

<div class="post-metadata">

### Author: ![cheffie](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@cheffie](https://forum.shopware.com/u/cheffie)
#### Post date: [31. Juli 2017 um 10:47 UTC](https://forum.shopware.com/t/shopware-geht-nicht-mehr-404-file-not-found/47184/8 "2017-07-31T10:47:04Z")

</div>

Wie sollen sie denn sein?&nbsp;

---

<div class="post-metadata">

### Author: ![cheffie](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@cheffie](https://forum.shopware.com/u/cheffie)
#### Post date: [31. Juli 2017 um 10:48 UTC](https://forum.shopware.com/t/shopware-geht-nicht-mehr-404-file-not-found/47184/9 "2017-07-31T10:48:12Z")

</div>

So sind sie aktuell:

find . -type f -exec chmod 644 {} ;

find . -type d -exec chmod 755 {} ;
