bcremer / shopware-with-nginx

Running shopware using NGINX
http://shopware.com
BSD 2-Clause "Simplified" License
95 stars 46 forks source link

SEO url rewrite issue with .html ending #11

Closed Kamik closed 9 years ago

Kamik commented 9 years ago

Wenn Ich in SEO/Router Einstellungen für Artikel folgende Template benutze - {sCategoryPath articleID=$sArticle.id}/{$sArticle.name}.html, nginx zeigt immer 404 Fehler. Das selbe mit Categorie-Template. Ohne .html funktioniert seo-rewrite ohne Probleme.

bcremer commented 9 years ago

Hi @Kamik,

the problem is the static files location: https://github.com/bcremer/shopware-with-nginx/blob/master/global/shopware.conf#L93

Just remove the html from the regex.

I'll try to find a nicer solution for that.

bcremer commented 9 years ago

You can also comment in this line: https://github.com/bcremer/shopware-with-nginx/blob/master/global/shopware.conf#L93

This enables a fallback to the shopware stack if a static file is not found.