Autor Zpráva
Fisak
Profil
Dobrý den. Mám problém s .htaccessem ... vypisuje mi to chybu "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"

a kod mam
Options -Indexes

php_flag register_globals off
php_flag session.cookie_httponly on

ErrorDocument 404 /system/defense/error-msg.php
ErrorDocument 500 /system/defense/error-msg.php
ErrorDocument 400 /system/defense/error-msg.php
ErrorDocument 401 /system/defense/error-msg.php
ErrorDocument 403 /system/defense/error-msg.php

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !\.[[:alnum:]]+$
RewriteRule ^(.+[^/])$ /$1/ [R=301]
RewriteCond %{REQUEST_URI} !^/(images|uploads) [OR]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+) - [PT,L] 
RewriteRule ^([^/]+)/([^/]+)?/?([^/]+)?/?$ /?page=$1&action=$2&run=$3
</IfModule>

<IfModule mod_gzip.c>   
    mod_gzip_on         Yes   
    mod_gzip_dechunk    Yes   
    mod_gzip_item_include file          \.(html?|txt|css|js|php|pl)$   
    mod_gzip_item_include handler       ^cgi-script$   
    mod_gzip_item_include mime      ^text\.*   
    mod_gzip_item_include mime      ^application/x-javascript.*   
    mod_gzip_item_exclude mime      ^image\.*   
    mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*   
</IfModule>

<IfModule mod_deflate.c>
    SetOutputFilter DEFLATE
    <IfModule mod_setenvif.c>
        # Netscape 4.x has some problems...
        BrowserMatch ^Mozilla/4 gzip-only-text/html

        # Netscape 4.06-4.08 have some more problems
        BrowserMatch ^Mozilla/4\.0[678] no-gzip

        # MSIE masquerades as Netscape, but it is fine
        # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

        # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
        # the above regex won't work. You can use the following
        # workaround to get the desired effect:
        BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html

        # Don't compress images
        SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
    </IfModule>

    <IfModule mod_headers.c>
        # Make sure proxies don't deliver the wrong content
        Header append Vary User-Agent env=!dont-vary
    </IfModule>
</IfModule>

<IfModule mod_headers.c>
<FilesMatch "\.(eot|woff|ttf|svg)$"> 
Header set Expires "Thu, 15 Apr 2020 20:00:00 GMT" 
Header set Cache-Control "public, max-age=2592000"
</FilesMatch> 
 
<FilesMatch ".(js|css|txt)$">   
Header set Cache-Control "public, max-age=604800"   
</FilesMatch>    

<FilesMatch ".(flv|swf|ico|gif|jpg|jpeg|png)$">   
Header set Cache-Control "public, max-age=2592000" 
</FilesMatch> 
   
<FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$">   
Header unset Cache-Control
</FilesMatch> 
</IfModule>
Rfilip
Profil
Pokud používáš hosting od gigaserveru (dle chybové hlášky usuzuji že ano), tak bude problém na první řádku - Options nejsou na gigaserveru povolené
Tori
Profil
Anebo jestli to je wedos, tak php_flag určitě nejde použít, http://kb.wedos.com/webhosting/htaccess.html
Fisak
Profil
je to u wedosu a jak bych mohl jinak vypnout globální proměnné ??
Tori
Profil
Fisak:
jak bych mohl jinak vypnout globální proměnné
V administraci. Kliknete na webhosting, v levém menu je volba "nastavení PHP". session.cookie_httponly se dá nastavit přes ini_set.

Vaše odpověď


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0