Problém s .htaccess na hosting u Wedosu
Dobrý den,
mám problém s novým e-shopem s podporou .htaccessu ve formě
Options -Indexes
Options +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
# Presmerovani z www
#RewriteCond %{HTTP_HOST} ^moje-domena.cz$
#RewriteRule ^(.*)$ http://www.moje-domena.cz/$1 [R=301,L]
RewriteRule ^,([0-9]+),(banners)\.html index.php?,$1,$2 [QSA] #banners
RewriteRule ^([0-9]+),(.*)\.html index.php?$1,$2 [QSA] #products
RewriteRule ^(.*),([0-9]+),,,,(.*)\.html index.php?$1,$2,,,,$3 [QSA] #tags
RewriteRule ^(.*),([0-9]+)(,[0-9]*)*(,[0-9]*)*(,[0-9]*)*\.html index.php?$1,$2,$3,$4,$5 [QSA]
RewriteRule ^(.*),(.*)\.html index.php?,$1,$2 [QSA]
RewriteRule ^.*,(.*),rss\.xml index.php?,$1,xml [QSA]
RewriteRule ^sitemap\.xml index.php?p=xml-sitemap [QSA]
RewriteRule ^(\w*),(\w*),(\w{2})\.xml index.php?$2,$1,xml&sLang=$3 [QSA]
RewriteRule ^([^\/]*)\.html index.php?$1 [QSA]
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg „access plus 1 year“
ExpiresByType image/jpeg „access plus 1 year“
ExpiresByType image/gif „access plus 1 year“
ExpiresByType image/png „access plus 1 year“
ExpiresByType text/css „access plus 1 month“
ExpiresByType application/pdf „access plus 1 month“
ExpiresByType text/javascript „access plus 1 month“
ExpiresByType application/javascript „access plus 1 month“
ExpiresByType application/x-shockwave-flash „access plus 1 month“
ExpiresByType image/x-icon „access plus 1 year“
</IfModule>
</IfModule>
Stránku nenačte, vyskočí chyba-
„Pri zpracovani pozadavku doslo k vnitrni chybe. Pravdepodobne se jedna o chybu v .htaccess souboru.
Ctete instrukce v nasi znalostni bazi: Chyba 500 – Internal Server Error“
Dá se s tím něco udělat? Změnit nastavení hostingu?
Podotýkám, že u jiných poskytovatelů hostingu s tím problém není, tam veškeré funkce e-shopu fungují.
Děkuji
2 Answers
Zdravím, zkuste zakomentovat volbu Options +FollowSymLinks:
#Options +FollowSymLinks
Moc a moc děkuji, problém vyřešen