Файл: .htaccess
Строк: 57
php_value error_reporting off
php_value magic_quotes_gpc 0
php_value
magic_quotes_runtime 0
php_value magic_quotes_sybase 0
Addtype image/jpeg
.jpg
Addtype image/jpeg .jpeg
Addtype image/gif .gif
Addtype image/png
.png
Addtype image/bmp .bmp
AddDefaultCharset UTF-8
<IfModule
mod_expires.c>
ExpiresActive On
ExpiresByType image/gif "access
plus 2592000 seconds"
ExpiresByType image/jpeg "access plus
2592000 seconds"
ExpiresByType image/png "access plus 2592000
seconds"
ExpiresByType image/x-icon "access plus 2592000
seconds"
</IfModule>
<IfModule mod_headers.c>
<FilesMatch "\.(ico|jpe?g|png|gif)$">
Header set
Cache-Control "max-age=2592000, private"
</FilesMatch>
</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>
IndexIgnore *.php
Options
-Indexes
DirectoryIndex index.php
IndexIgnore *.php
RewriteEngine
On
RewriteRule ^([\w_-]+)/{0,1}$ /?page=$1 [L,QSA]
RewriteRule
^index/([0-9]+)/{0,1}$ /?page=index&pages=$1 [L,QSA]
RewriteRule
^index/([0-9]+)/([0-9]+)/{0,1}$ /?page=index&pages=$1&id=$2
[L,QSA]
RewriteRule ^go/([0-9]+)/{0,1}$ /?page=go&id=$1
[L,QSA]
RewriteRule ^in/([0-9]+)/{0,1}$ /?page=in&id=$1
[L,QSA]
RewriteRule ^out/([0-9]+)/{0,1}$ /?page=out&id=$1
[L,QSA]
RewriteRule ^cabinet/([A-z]+)/{0,1}$ /?page=cabinet&cab=$1
[L,QSA]
RewriteRule ^cabinet/([A-z]+)/([0-9]+)/{0,1}$
/?page=cabinet&cab=$1&id=$2 [L,QSA]
RewriteRule
^cabinet/([A-z]+)/([0-9]+)/([0-9]+)/{0,1}$
/?page=cabinet&cab=$1&id=$2&pages=$3 [L,QSA]
RewriteRule
^sitelist/([0-9]+)/{0,1}$ /?page=sitelist&categoryID=$1
[L,QSA]
RewriteRule ^sitelist/([0-9]+)/([0-9]+)/{0,1}$
/?page=sitelist&categoryID=$1&pages=$2 [L,QSA]
RewriteRule
^sitelist/([0-9]+)/([0-9]+)/([0-9]+)/{0,1}$
/?page=sitelist&categoryID=$1&pages=$2&id=$3
[L,QSA]
RewriteRule ^siteStatistics/([0-9]+)/{0,1}$
/?page=siteStatistics&id=$1 [L,QSA]
RewriteRule
^siteStatistics/([0-9]+)/([A-z]+)/{0,1}$
/?page=siteStatistics&id=$1&$2 [L,QSA]
RewriteRule ^news/([A-z]+)/$
/?page=news&$1 [L,QSA]
RewriteRule ^news/([A-z]+)/([0-9]+)/$
/?page=news&$1&id=$2 [L,QSA]
RewriteRule ^ads/([A-z]+)/$
/?page=ads&a=$1 [L,QSA]
RewriteRule ^ads/([A-z]+)/([0-9]+)/$
/?page=ads&a=$1&id=$2 [L,QSA]
RewriteRule
^ads/([A-z]+)/([0-9]+)/([0-9]+)/$
/?page=ads&a=$1&id=$2&pages=$3 [L,QSA]
RewriteRule
^ads/moderation/([A-z]+)/([0-9]+)/$
/?page=ads&a=moderation&$1&id=$2 [L,QSA]
RewriteRule
^ads/moderationReclame/([A-z]+)/([0-9]+)/$
/?page=ads&a=moderationReclame&$1&id=$2 [L,QSA]