Файл: .htaccess
Строк: 62
Options All -ExecCGI -Indexes -Includes +FollowSymLinks
DirectoryIndex
index.php
AddDefaultCharset UTF-8
ServerSignature Off
<IfModule
mod_setenvif.c>
SetEnv TZ
Europe/Moscow
</IfModule>
php_flag error_reporting 7
php_flag
display_errors on
php_flag magic_quotes_gpc off
RewriteEngine
On
RewriteCond %{REQUEST_URI} (.*/[^/.]+)($|\?)
RewriteRule .* %1/
[R=301,L]
RewriteRule ^news_read/(\d+)_(\w+)/{0,1}$
/?page=news_read&id=$1 [L,QSA]
RewriteRule
^daily_read/(\d+)_(\w+)/{0,1}$ /?page=daily_read&id=$1
[L,QSA]
RewriteRule ^forum_theme_read/(\d+)_(\w+)/{0,1}$
/?page=forum_theme_read&id=$1 [L,QSA]
RewriteRule
^files_show/(\d+)_(\w+)/{0,1}$ /?page=files_show&id=$1
[L,QSA]
RewriteRule ^pages/(\d+)_(\w+)/{0,1}$ /?page=pages&id=$1
[L,QSA]
RewriteRule ^photos_show/(\d+)_(\w+)/{0,1}$
/?page=photos_show&id=$1 [L,QSA]
RewriteRule ^rss/{0,1}$
/?modules=rss [L,QSA]
RewriteRule ^sitemap.xml$ /?modules=sitemap
[L,QSA]
RewriteRule ^robots.txt$ /?modules=robots [L,QSA]
RewriteRule
^id(\d+)/{0,1}$ /?page=user_information&id=$1 [L,QSA]
RewriteRule
^([\w_-]+)/{0,1}$ /?page=$1 [L,QSA]
RewriteRule ^dialog/([\w_-]+)/{0,1}$
/?dialog=$1 [L,QSA]
RewriteRule ^modules/([\w_-]+)/{0,1}$ /?modules=$1
[L,QSA]
SetEnvIfNoCase Request_URI / no-gzip dont-vary
<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|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 "\.(php)$">
Header unset
Cache-Control
</FilesMatch>
</IfModule>
<ifModule
mod_expires.c>
ExpiresActive On
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>