Autor | Zpráva | ||
---|---|---|---|
Fisak Profil |
#1 · Zasláno: 3. 1. 2012, 14:16:46
Zdravím rád bych se zeptal jestli u mého htaccessu je vše jak má být popř. co by ste změnili vylepšili atd...
Options -Indexes php_flag register_globals on php_flag display_errors on 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 RewriteEngine on RewriteRule ^images/(.*)$ /_images/$1 [L] RewriteRule ^upload/(.*)$ /_upload/$1 [L] RewriteRule ^plugins/(.*)$ /_plugins/$1 [L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !\.[[:alnum:]]+$ RewriteRule ^(.+[^/])$ /$1/ [R=301] RewriteCond %{REQUEST_URI} !^/(_images|_upload) [OR] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^/]+)/([^/]+)?/?([^/]+)?/?$ /?page=$1&action=$2&run=$3 <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> <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> |
||
pcmanik Profil |
#2 · Zasláno: 3. 1. 2012, 14:35:23
Fisak:
Hned vypni register globals. Naco to mas preboha zapnute? A display-errors by si tiez nemal mat zapnute na webe, len pre potreby testovania. |
||
Fisak Profil |
#3 · Zasláno: 3. 1. 2012, 15:19:13
ok ... udělám to tak že register_globals dam off a display_errors zařídim přez php_ini abych si to mohl editovat přez web..
|
||
Časová prodleva: 12 let
|
0