Shopware Knowledgebase

Meldung: No input file specified

ab Version:3.0 bis Version:3.0.5.1

Vorwort

Falls Sie nach einer Installation von Shopware die SEO-freundlichen URLs nicht aufrufen können und die Meldung "No input file specified." erhalten, kann dies durch eine angepasste htaccess-Datei behoben werden.

Sichern Sie in Ihrem Shop-Hauptverzeichnis die Datei .htaccess bzw. benennen diese um.

Shopware 3.0.5

angepasste htaccess-Datei

 
DirectoryIndex index.php shopware.php
 
RewriteEngine on
 
RewriteRule shopware.dll shopware.php
RewriteRule .*?_detail_([0-9]+)(?:_([0-9]+))?_?(SESS\-(.*?))?.html shopware.php?sViewport=detail&sArticle=$1&sCategory=$2&sCoreId=$4&%{QUERY_STRING}
RewriteRule .*_cat_([0-9]+)_*([0-9]+)?_?(SESS\-(.*?))?.html shopware.php?sCategory=$1&sPage=$2&sViewport=cat&sCoreId=$4&%{QUERY_STRING}
RewriteRule unternehmen/.*?_custom_([0-9]+)_?([0-9]+)?_?(SESS\-(.*?))?.html   shopware.php?sViewport=custom&sCustom=$1&sCoreId=$4&sId=$2&
RewriteRule .*?_campaign_([0-9]+)_?(SESS\-(.*?))?.html shopware.php?sViewport=campaign&sCampaign=$1&sCoreId=$3&
RewriteRule Artikelindex.*_(.*).html shopware.php?sViewport=search&sSearchMode=bychar&sSearchChar=$1&sSearchText=Artikelindex-$1
RewriteRule Supplier-(.*)_(.*).html shopware.php?sViewport=search&sSearchMode=supplier&sSearch=$2&sSearchText=$1
RewriteRule files/documents/.*? engine
RewriteRule images/ayww/(.*) images/banner/$1
RewriteRule sitemap.xml(.*) engine/core/php/sSitemap.php
 
RewriteRule ^templates/.*(css|js)$ engine/core/php/sCacheTemplate.php?file=$0 [NC,L]
 
Order allow,deny
Allow from all
<Files *.tpl>
Deny from all
</Files>
 
 
RewriteCond %{REQUEST_URI} !(^\/engine\/|^\/images\/|^\/files\/|^\/unternehmen\/|^\/templates\/|\.js$|\.css$|\.jpg$|\.png$)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ shopware.php?$1 [PT,L,QSA]
 

zusätzliche optionale Erweiterung der config.php

Bei einigen Servern kann es zu Problemen beim Ausführen der GET Parameter kommen, z.B. beim Ausführen des Hersteller-Filters.

Über diese Erweiterung in der config.php kann das Problem behoben werden.

 
$query = parse_url($_SERVER['REQUEST_URI'], PHP_URL_QUERY);
if(!empty($query))
{
    parse_str($query, $query);
    $_GET = array_merge($_GET, $query);
    $_REQUEST = array_merge($_REQUEST, $query);
}
 

ab Shopware 3.0.5 (Standard htaccess-Datei)

 
RewriteEngine on
 
RewriteRule shopware.dll shopware.php
RewriteRule .*?_detail_([0-9]+)(?:_([0-9]+))?_?(SESS\-(.*?))?.html shopware.php/sViewport,detail/sArticle,$1/sCategory,$2/sCoreId,$4
RewriteRule .*_cat_([0-9]+)_*([0-9]+)?_?(SESS\-(.*?))?.html shopware.php/sCategory,$1/sPage,$2/sViewport,cat/sCoreId,$4
RewriteRule unternehmen/.*?_custom_([0-9]+)_?([0-9]+)?_?(SESS\-(.*?))?.html   shopware.php/sViewport,custom/sCustom,$1/sCoreId,$4/sId,$2/
RewriteRule .*?_campaign_([0-9]+)_?(SESS\-(.*?))?.html shopware.php/sViewport,campaign/sCampaign,$1/sCoreId,$3/
RewriteRule Artikelindex.*_(.*).html shopware.php/sViewport,search/sSearchMode,bychar/sSearchChar,$1/sSearchText,Artikelindex-$1/
RewriteRule Supplier-(.*)_(.*).html shopware.php/sViewport,search/sSearchMode,supplier/sSearch,$2/sSearchText,$1/
RewriteRule files/documents/.*? engine
RewriteRule images/ayww/(.*) images/banner/$1
RewriteRule .*?_detail_([0-9]+)(?:_(.*?))(?:_(.*))?.pdf engine/core/php/sArticlePDF.php?id=$1&lang=$2
RewriteRule sitemap.xml(.*) engine/core/php/sSitemap.php
 
RewriteRule ^templates/.*(css|js)$ engine/core/php/sCacheTemplate.php?file=$0 [NC,L]
 
DirectoryIndex index.php
DirectoryIndex shopware.php
 
Order allow,deny
Allow from all
<Files *.tpl>
Deny from all
</Files>
 
 
RewriteCond %{REQUEST_URI} !(^\/engine\/|^\/images\/|^\/files\/|^\/unternehmen\/|^\/templates\/|\.js$|\.css$|\.jpg$|\.png$)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ shopware.php/$1 [PT,L,QSA]
 

angepasste Datei Shopware 3.0.4 und älter

 
DirectoryIndex index.php shopware.php
 
RewriteEngine on
 
RewriteRule shopware.dll shopware.php
RewriteRule .*?_detail_([0-9]+)(?:_([0-9]+))?_?(SESS\-(.*?))?.html shopware.php?sViewport=detail&sArticle=$1&sCategory=$2&sCoreId=$4&%{QUERY_STRING}
RewriteRule .*_cat_([0-9]+)_*([0-9]+)?_?(SESS\-(.*?))?.html shopware.php?sCategory=$1&sPage=$2&sViewport=cat&sCoreId=$4&%{QUERY_STRING}
RewriteRule unternehmen/.*?_custom_([0-9]+)_?([0-9]+)?_?(SESS\-(.*?))?.html   shopware.php?sViewport=custom&sCustom=$1&sCoreId=$4&sId=$2&
RewriteRule .*?_campaign_([0-9]+)_?(SESS\-(.*?))?.html shopware.php?sViewport=campaign&sCampaign=$1&sCoreId=$3&
RewriteRule Artikelindex.*_(.*).html shopware.php?sViewport=search&sSearchMode=bychar&sSearchChar=$1&sSearchText=Artikelindex-$1
RewriteRule Supplier-(.*)_(.*).html shopware.php?sViewport=search&sSearchMode=supplier&sSearch=$2&sSearchText=$1
RewriteRule files/documents/.*? engine
RewriteRule images/ayww/(.*) images/banner/$1
RewriteRule sitemap.xml(.*) engine/core/php/sSitemap.php
 
RewriteRule ^templates/.*(css|js)$ engine/core/php/sCacheTemplate.php?file=$0 [NC,L]
 
Order allow,deny
Allow from all
<Files *.tpl>
Deny from all
</Files>
 

Artikel-PDF erstellen

Artikel bewerten

Waren diese Informationen hilfreich? Ja Nein


Weitere interessante Artikel:

Bezeichnung:
Rating:
Klicks:
Datum:

Kategorien:

Bestell-Nr.: SW1289

Lieferzeit ca. 5 Tage

€ 1,00

Preise inkl. gesetzlicher
MwSt. zzgl. Versandkosten*

€ 1,00

Preise inkl. gesetzlicher
MwSt. + Versandkosten*