Shopware4 mod_rewrite

Hallo :slight_smile: ich habe mir Shopware in das Root Verzeichnis des Apache gelegt und habe anscheinend ein Problem mit dem Addon mod_rewrite, denn ich erhalte beim Zugriff auf das Backend die Meldung: [quote]Not Found The requested URL /backend was not found on this server.[/quote] Allerdings ist mod_rewrite (gem. phpinfo) installiert: [quote]Loaded Modules core mod_so mod_watchdog http_core mod_log_config mod_logio mod_version mod_unixd mod_access_compat mod_alias mod_auth_basic mod_authn_core mod_authn_file mod_authz_core mod_authz_host mod_authz_user mod_autoindex mod_deflate mod_dir mod_env mod_filter mod_mime prefork mod_negotiation mod_php5 mod_rewrite mod_setenvif mod_status [/quote] Die .htaccess Datei ist vorhanden: [quote]foo@bar:~ ll /var/www/html/ total 32148 drwxr-xr-x 11 foo foo 4096 Nov 20 12:34 ./ drwxr-xr-x 4 foo foo 4096 Nov 20 09:56 ../ -rw-r--r-- 1 foo foo 1508 Sep 24 11:39 autoload.php drwxr-xr-x 2 foo foo 4096 Sep 24 11:39 bin/ drwxr-xr-x 9 foo foo 4096 Sep 24 11:39 cache/ -rwxrwxrwx 1 foo foo 184 Nov 20 12:16 config.php\* -rw-r--r-- 1 foo foo 2830 Sep 24 11:39 CONTRIBUTING.md drwxr-xr-x 5 foo foo 4096 Sep 24 11:39 engine/ -rw-r--r-- 1 foo foo 48007 Sep 24 11:39 eula\_en.txt -rw-r--r-- 1 foo foo 48499 Sep 24 11:39 eula.txt drwxr-xr-x 4 foo foo 4096 Sep 24 11:39 files/ [i][b]-rwxr--r-- 1 foo foo 1960 Nov 20 12:34 .htaccess\*[/b][/i] -rw-rw-r-- 1 foo foo 32689396 Sep 24 11:40 install\_4.3.2\_e6d1f12c47e61fa1c10893665234cf13b6b3e9f0.zip -rw-r--r-- 1 foo foo 34899 Sep 24 11:39 license.txt drwxrwxrwx 2 foo foo 4096 Sep 24 11:39 logs/ drwxr-xr-x 9 foo foo 4096 Sep 24 11:39 media/ -rwxr--r-- 1 foo foo 20 Nov 20 12:07 phpinfo.php\* -rw-r--r-- 1 foo foo 4415 Sep 24 11:39 README.md drwxr-xr-x 5 foo foo 4096 Sep 24 11:39 recovery/ -rw-r--r-- 1 foo foo 3840 Sep 24 11:39 shopware.php drwxr-xr-x 16 foo foo 4096 Sep 24 11:39 templates/ -rw-r--r-- 1 foo foo 13218 Sep 24 11:39 UPGRADE.md drwxr-xr-x 9 foo foo 4096 Sep 24 11:40 vendor/ [/quote] .htaccess: [quote]foo@bar:~ cat /var/www/html/.htaccess
RewriteEngine on

RewriteBase /

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)/)
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]
# Staging-Rules start #SetEnvIf Host “staging.test.shopware.in” ENV=staging DirectoryIndex index.html 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
# AddType x-mapp-php5 .php # AddHandler x-mapp-php5 .php [/quote] Gibt es da irgendwas dran auszusetzen, was ich übersehen habe? Ich würde mich sehr über ein Feedback freuen. Grüße Phil ps: /var/www/html/ ist in der Tat das Stammverzeichnis für Web-Daten

Prüfe mal, ob mod_rewrite auch wirklich geladen ist: apache2 -t -D DUMP\_MODULES Du kannst Dir auch ein PHP-Skript bauen mit der apache_get_modules()-Funktion - s. http://de2.php.net/apache_get_modules .