# Htaccess Datei falsch?

**URL:** <https://forum.shopware.com/t/htaccess-datei-falsch/27032>\
**Category:** Installation/Einstieg\
**Created:** [8. Mai 2015 um 07:35 UTC](https://forum.shopware.com/t/htaccess-datei-falsch/27032 "2015-05-08T07:35:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![schmidtsdrogerien](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@schmidtsdrogerien](https://forum.shopware.com/u/schmidtsdrogerien)\
**Post date:** [8. Mai 2015 um 07:35 UTC](https://forum.shopware.com/t/htaccess-datei-falsch/27032/1 "2015-05-08T07:35:31Z")

</div>

Hallo! Ich habe ein neues Problem. Ich hoste auf [SSD-Webhosting.de](http://SSD-Webhosting.de). Ich habe meine Shop neu hochgeladen in das Verzeichnis httpdocs/sn statt httpdocs/sw, Einstellung habe ich auch in den Benutzereinstellungen bei SSD abgeändernt. Wenn ich nun auf meine Homepage ([www.schmidts-drogerien.de](http://www.schmidts-drogerien.de)) klicke werde ich auf eine „Hier ensteht eine neue Präsens“ Seite weitergeleitet. Gehe ich aber [www.schmidts-drogerien.de/sn](http://www.schmidts-drogerien.de/sn) an funktioniert alles tadellos… Ich denke das liegt an der Htaccess Datei…in welchen Ordner muss ich diese legen und welchen Inhalt muss diese haben…?? Muss diese im httpdocs Ordner liegen oder im sn ordner?? Im Httpdocs Ordner befindet sich z.Zt keine Htaccess Datei…Ich habe eine Datei die im Ordner httpdocs/sn liegt…diese sieht so aus:  
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)(/|$)  
# 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.
<ifmodule>
    Deny from all
</ifmodule>

```

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

```
<ifmodule mod_headers.c>
    Header append Cache-Control "public"
    Header unset ETag
</ifmodule>

FileETag None

```

# Match generated files like: # 1429684458\_t22\_s1.css # 1429684458\_t22\_s1.js  
  
Header set Cache-Control „max-age=31536000, public“

```
<ifmodule mod_expires.c>
    ExpiresActive on
    ExpiresDefault "access plus 1 year"
</ifmodule>

```

# 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

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [8. Mai 2015 um 07:51 UTC](https://forum.shopware.com/t/htaccess-datei-falsch/27032/2 "2015-05-08T07:51:52Z")

</div>

Schau mal ob da eine index.html in Verzeichnis liegt und benenne die mal um.

---

<div class="post-metadata">

**Author:** ![schmidtsdrogerien](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@schmidtsdrogerien](https://forum.shopware.com/u/schmidtsdrogerien)\
**Post date:** [8. Mai 2015 um 08:02 UTC](https://forum.shopware.com/t/htaccess-datei-falsch/27032/3 "2015-05-08T08:02:36Z")

</div>

Im Httpdocs Ordner liegt keine…im Httpdocs/sn liegt eine. Umbenannt nix passiert

---

<div class="post-metadata">

**Author:** ![schmidtsdrogerien](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@schmidtsdrogerien](https://forum.shopware.com/u/schmidtsdrogerien)\
**Post date:** [8. Mai 2015 um 08:20 UTC](https://forum.shopware.com/t/htaccess-datei-falsch/27032/4 "2015-05-08T08:20:28Z")

</div>

Habs hinbekommen! War doch die Index.html…diese musste gelöscht werden! Vielen Dank…🙂
