<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
</IfModule>
AddDefaultCharset utf-8
DirectoryIndex index.php
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault A86400
ExpiresByType image/x-icon A2592000
ExpiresByType application/x-javascript A2592000
ExpiresByType text/css A2592000
ExpiresByType image/gif A604800
ExpiresByType image/png A604800
ExpiresByType image/jpeg A604800
ExpiresByType text/plain A604800
ExpiresByType application/x-shockwave-flash A604800
ExpiresByType video/x-flv A604800
ExpiresByType application/pdf A604800
ExpiresByType text/html A900
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml
SetOutputFilter DEFLATE
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI \.(?:gif|png)$ no-gzip dont-vary
Header append Vary User-Agent env=!dont-vary
</IfModule>
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^/?$ /index.php [L,QSA]
#RewriteRule ^([A-z0-9]*)/?$ /_modules/index.php?loadPage=profile&address=$1 [L,QSA]
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^id([0-9]*)/?$ /_modules/index.php?loadPage=profile&id=$1 [L,QSA]
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^photos([0-9]*)/?$ /_modules/index.php?loadPage=photos&id=$1 [L,QSA]
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^photos([0-9]*)/album([0-9]*)?/?$ /_modules/index.php?loadPage=photos&act=album&id=$2&user=$1 [L,QSA]
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^photos([0-9]*)/view([0-9]*)?/?$ /_modules/index.php?loadPage=photos&act=photo_view&id=$2&user=$1 [L,QSA]
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
#RewriteRule ^([A-z0-9_]*)/?$ /_modules/index.php?loadPage=$1 [L,QSA]
RewriteRule ^mail/file/([A-z]+)/([A-z0-9.]+)/?$ /_modules/index.php?loadPage=mail&act=file&folder=$1&hash=$2 [L,QSA]
#Audio mod
php_value default_charset utf-8
Addtype audio/mpeg .mp3
RewriteRule ^audio/p/(.*)/q/(.*)/?$ /_modules/index.php?loadPage=audio&_pp=$1&_qq=$2 [B,PT]
RewriteRule ^audio/p/(.*)/?$ /_modules/index.php?loadPage=audio&_pp=$1 [L,QSA]
RewriteRule ^audio/q/(.*)?$ /_modules/index.php?loadPage=audio&_qq=$1 [B,PT]
RewriteRule ^audio/radio/p/(.*)/?$ /_modules/index.php?loadPage=audio&_mod=radio&_pp=$1 [L,QSA]
RewriteRule ^audio/radio/?$ /_modules/index.php?loadPage=audio&_mod=radio [L,QSA]
RewriteRule ^audio/get/(.*)/music/(.*).mp3?$ /_modules/index.php?loadPage=audio&_mod=play&_file=$1&_dataID=$2 [L,QSA]
RewriteRule ^audio/get/(.*)/download/(.*).mp3?$ /_modules/index.php?loadPage=audio&_mod=download&_file=$1&_dataID=$2 [L,QSA]
RewriteRule ^audio/get/(.*)/cover/(.*)\.(.*)?$ /_modules/index.php?loadPage=audio&_mod=cover&_file=$1&_dataID=$2 [L,QSA]
RewriteRule ^audio/auth/?$ /_modules/index.php?loadPage=audio&_mod=auth [L,QSA]
#End audio mod
# Engine routing
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /_modules/index.php?loadPage=$1 [L,QSA]
RewriteEngine on
RewriteRule ^(.*)$ $1 [E=HTTP_IF_MODIFIED_SINCE:%{HTTP:If-Modified-Since}]
</IfModule>
# flag
php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
# Нужные фичи by Anton Zarembo
# Запрещаем просмотр директорий.
Options -Indexes