# Startseite leitet auf 404 Seite weiter (htaccess Problem?)

**URL:** https://forum.shopware.com/t/startseite-leitet-auf-404-seite-weiter-htaccess-problem/28827
**Category:** Shopware 3.5
**Tags:** administration
**Created:** [13. Juli 2015 um 15:00 UTC](https://forum.shopware.com/t/startseite-leitet-auf-404-seite-weiter-htaccess-problem/28827 "2015-07-13T15:00:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![david.berlin](https://avatars.discourse-cdn.com/v4/letter/d/e36b37/32.png) [@david.berlin](https://forum.shopware.com/u/david.berlin)
#### Post date: [13. Juli 2015 um 15:00 UTC](https://forum.shopware.com/t/startseite-leitet-auf-404-seite-weiter-htaccess-problem/28827/1 "2015-07-13T15:00:54Z")

</div>

Hallo, wir haben unsere .htaccess Datei angepasst, damit alle URLs auf https:// weiterleiten. Das funktioniert auch soweit. Allerdings leitet unsere Startseite folgendermaßen weiter: [http://host.de](http://host.de) nach [https://host.de/index.html](https://host.de/index.html) Die index.html existiert allerdings nicht (und soll sie auch nicht). Daher kommt es zu einer 404 Seite. Könnt ihr uns dabei helfen? htaccess:  
RewriteEngine on

RewriteCond %{SERVER\_PORT} !^443$  
RewriteRule (.\*) https://%{HTTP\_HOST}/$1 [L]

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

RewriteCond %{REQUEST\_URI} !(/(engine|files|templates)/)  
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]  
#DirectoryIndex #DirectoryIndex index.php #DirectoryIndex shopware.php # Disables download of configuration  
Deny from all  
# Enable gzip compression  
AddOutputFilterByType DEFLATE text/html text/xml text/plain text/css text/javascript application/json  
  
  
ExpiresActive on  
ExpiresDefault “access plus 1 month”  
FileETag None  
  
Header append Cache-Control “public”  
Header unset ETag  
  
  
# Disables auto directory index  
Options -Indexes  
  
Options -MultiViews

# php\_value memory\_limit 128M

# 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  
vG

---

<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: [13. Juli 2015 um 15:40 UTC](https://forum.shopware.com/t/startseite-leitet-auf-404-seite-weiter-htaccess-problem/28827/2 "2015-07-13T15:40:26Z")

</div>

Nehm mal die # hier raus `#DirectoryIndex #DirectoryIndex index.php #DirectoryIndex shopware.php` Das wird entsprechend zu `DirectoryIndex DirectoryIndex index.php DirectoryIndex shopware.php`

---

<div class="post-metadata">

### Author: ![david.berlin](https://avatars.discourse-cdn.com/v4/letter/d/e36b37/32.png) [@david.berlin](https://forum.shopware.com/u/david.berlin)
#### Post date: [14. Juli 2015 um 12:22 UTC](https://forum.shopware.com/t/startseite-leitet-auf-404-seite-weiter-htaccess-problem/28827/3 "2015-07-14T12:22:18Z")

</div>

Hallo, ja danke, das war eins der beiden Probleme. Das andere: RewriteBase / Damit funktioniert es. Danke!
