Файл: Ставки на рыбу/Site/.htaccess
Строк: 63
<files .htaccess>
order allow,deny
deny from
all
</files>
Options +FollowSymLinks
RewriteEngine On
RewriteCond
%{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond
%{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond
%{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php
[F,L]
Options All -Indexes
ServerSignature Off
<FilesMatch
".(flv|gif|jpg|jpeg|png|ico|swf|js|css|pdf)$">
Header set
Cache-Control "max-age=2592000"
</FilesMatch>
<ifModule
mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain
text/xml application/xml application/xhtml+xml text/css text/javascript
application/javascript
application/x-javascript
</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
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_headers.c>
<FilesMatch "\.(html|htm)$">
Header set
Cache-Control "max-age=43200"
</FilesMatch>
<FilesMatch
"\.(js|css|txt)$">
Header set Cache-Control
"max-age=604800"
</FilesMatch>
<FilesMatch
"\.(flv|swf|ico|gif|jpg|jpeg|png)$">
Header set Cache-Control
"max-age=2592000"
</FilesMatch>
<FilesMatch
"\.(pl|php|cgi|spl|scgi|fcgi)$">
Header unset
Cache-Control
</FilesMatch>
</IfModule>
<ifModule
mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5
seconds"
ExpiresByType image/x-icon "access plus 2592000
seconds"
ExpiresByType image/jpeg "access plus 2592000
seconds"
ExpiresByType image/png "access plus 2592000
seconds"
ExpiresByType image/gif "access plus 2592000
seconds"
ExpiresByType application/x-shockwave-flash "access plus
2592000 seconds"
ExpiresByType text/css "access plus 604800
seconds"
ExpiresByType text/javascript "access plus 604800
seconds"
ExpiresByType application/javascript "access plus 604800
seconds"
ExpiresByType application/x-javascript "access plus
604800 seconds"
ExpiresByType text/html "access plus 43200
seconds"
ExpiresByType application/xhtml+xml "access plus 600
seconds"
</ifModule>
RewriteEngine On
RewriteBase /
RewriteCond
%{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule
^(.*)$ $1.php
RewriteCond %{HTTP_HOST} ^www\.(.+) [NC]
RewriteRule .*
http://%1/$0 [L,R=301]