Options All -ExecCGI -Indexes -Includes +FollowSymLinks
DirectoryIndex index.php
php_flag display_errors on
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !^favicon\.ico
RewriteCond %{HTTP_HOST} ^www.site.ru
RewriteRule ^(.*) http://site.ru/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://site.ru [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php?param=$1 [L,QSA]
</IfModule>
<IfModule mod_setenvif.c>
SetEnv TZ Asia/Yekaterinburg
</IfModule>
ServerSignature Off
AddDefaultCharset WINDOWS-1251
<IfModule mod_php.c>
php_value upload_max_filesize 16M
php_value post_max_size 10M
php_value default_charset cp1251
php_value max_execution_time 180
php_flag magic_quotes_gpc off
php_flag magic_quotes_runtime off
php_flag register_globals off
</IfModule>
AddHandler application/x-httpd-php .html
AddType application/x-javascript .js
AddType text/css .css
AddType text/xml .xml
AddType application/octet-stream .doc .mov .avi .pdf .xls
<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>
ErrorDocument 401 http://site.ru/401
ErrorDocument 403 http://site.ru/403
ErrorDocument 404 http://site.ru/404
order allow,deny
allow from all
deny from %ip% |