Файл: .htaccess
Строк: 51
AddDefaultCharset UTF-8
# INDEX
DirectoryIndex index.php
Options
-Indexes
# Кэширование файлов
FileETag MTime Size
<ifmodule mod_expires.c>
<filesmatch
".(jpg|gif|png|css|js)$">
ExpiresActive on
ExpiresDefault
"access plus 1 year"
</filesmatch>
</ifmodule>
# Мод Rewrite
RewriteEngine On
RewriteRule
^view/([0-9]+)/$ pages/app/view.php?id=$1 [L,QSA]
RewriteRule
^view/([0-9]+)/like/$ pages/app/view.php?id=$1&act=like
[L,QSA]
RewriteRule ^category/([0-9]+)/$ pages/app/category.php?id=$1
[L,QSA]
RewriteRule ^category/([0-9]+)/page/([0-9]+)/$
pages/app/category.php?id=$1&page=$2 [L,QSA]
RewriteRule ^allcat/$
pages/app/allcat.php [L,QSA]
RewriteRule ^allview/$ pages/app/allview.php
[L,QSA]
RewriteRule ^allview/([0-9]+)/$ pages/app/allview.php?page=$1
[L,QSA]
RewriteRule ^download/mp4/([0-9]+)/$
pages/app/download.php?act=mp4&id=$1 [L,QSA]
RewriteRule
^download/3gp/([0-9]+)/$ pages/app/download.php?act=3gp&id=$1
[L,QSA]
# админ панель
RewriteRule ^root/$
pages/admin/index.php [L,QSA]
RewriteRule ^root/category/$
pages/admin/category.php [L,QSA]
RewriteRule ^root/category/([0-9]+)/$
pages/admin/category.php?page=$1 [L,QSA]
RewriteRule
^root/category/del/([0-9]+)/$ pages/admin/category.php?act=del&id=$1
[L,QSA]
RewriteRule ^root/manager/$ pages/admin/manager.php
[L,QSA]
RewriteRule ^root/manager/([0-9]+)/$
pages/admin/manager.php?page=$1 [L,QSA]
RewriteRule
^root/manager/edit/([0-9]+)/$ pages/admin/manager.php?act=edit&id=$1
[L,QSA]
RewriteRule ^root/manager/del/([0-9]+)/$
pages/admin/manager.php?act=del&id=$1 [L,QSA]
RewriteRule
^root/import/$ pages/admin/import.php [L,QSA]
RewriteRule ^root/upload/$
pages/admin/upload.php [L,QSA]
RewriteRule ^root/logout/$
pages/admin/logout.php [L,QSA]
# Ошибки
ErrorDocument 400
/error[400]
ErrorDocument 401 /error[401]
ErrorDocument 402
/error[402]
ErrorDocument 403 /error[403]
ErrorDocument 404
/error[404]
ErrorDocument 500 /error[500]
ErrorDocument 502
/error[502]
# Компрессия
php_flag zlib.output_compression
On
php_value zlib.output_compression_level 6
#
Отладка
php_value date.timezone
"Europe/Moscow"
php_value arg_separator.output
"&"
php_flag register_globals Off
php_flag
register_long_arrays Off
php_flag display_errors Off
php_value
output_buffering On
# Магические ковычки
php_flag
magic_quotes_gpc Off
php_flag magic_quotes_runtime Off
php_flag
magic_quotes_sybase Off
# Задаем соответствие mime
типов расширению
Addtype image/jpeg .jpg
Addtype
image/jpeg .jpeg
Addtype image/gif .gif
Addtype image/png .png
Addtype image/bmp .bmp
AddType video/mp4 .mp4
Addtype video/3gpp
.3gp