Your IP : 216.73.216.170


Current Path : /home/bitrix/ext_www/vebeng.yacl.site/
Upload File :
Current File : /home/bitrix/ext_www/vebeng.yacl.site/.htaccess.restore

#AuthType Basic
#AuthName "Private"
#AuthUserFile /var/www/vebi/data/www/vebeng2.ru/.htpasswd
#require valid-user 


AddCharset utf-8 *

<IfModule mod_charset.c>
CharsetSourceEnc utf-8
CharsetDefault utf-8
</IfModule>
Options -Indexes 
ErrorDocument 404 /404.php

<IfModule mod_php5.c>
  php_flag session.use_trans_sid off
  #php_value display_errors 1
  #php_value mbstring.internal_encoding UTF-8
  php_value mbstring.func_overload 2
  php_value mbstring.internal_encoding UTF-8
  php_value xcache.stat On
  php_flag xcache.stat On
  php_value opcache.revalidate_freq 0
</IfModule>

<IfModule mod_rewrite.c>
  	Options +FollowSymLinks 
  	RewriteEngine On 

	# редирект www.host.ru -> host.ru
	RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
	RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

	# редирект /news/123 -> /news/123/
	RewriteCond %{REQUEST_URI} ^(.*/[^/\.]+)$
	RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [R=301,L]
	RewriteCond %{REQUEST_URI} ^(.*)/$

	# редирект /news/index.php -> /news/
	RewriteCond %{ENV:REDIRECT_STATUS} 200
	RewriteRule .* - [L]
	RewriteCond %{REQUEST_METHOD} =GET
	RewriteCond %{REQUEST_URI} ^(.*)/index.php$
	RewriteRule ^(.*)$ %1/ [R=301,L]


	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -l [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteCond %{REQUEST_FILENAME} [\xC2-\xDF][\x80-\xBF] [OR]
	RewriteCond %{REQUEST_FILENAME} \xE0[\xA0-\xBF][\x80-\xBF] [OR]
	RewriteCond %{REQUEST_FILENAME} [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2} [OR]
	RewriteCond %{REQUEST_FILENAME} \xED[\x80-\x9F][\x80-\xBF] [OR] 
	RewriteCond %{REQUEST_FILENAME} \xF0[\x90-\xBF][\x80-\xBF]{2} [OR]
	RewriteCond %{REQUEST_FILENAME} [\xF1-\xF3][\x80-\xBF]{3} [OR]
	RewriteCond %{REQUEST_FILENAME} \xF4[\x80-\x8F][\x80-\xBF]{2}
	RewriteCond %{REQUEST_FILENAME} !/bitrix/virtual_file_system.php$
	RewriteRule ^(.*)$ /bitrix/virtual_file_system.php [L]

	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-l
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$
	RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]

	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-l
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteCond %{REQUEST_URI} ^(.*/[^/\.]+)$
	RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1/ [R=301,L]



</IfModule>
<IfModule mod_dir.c>
  DirectoryIndex index.php index.html
</IfModule>
<IfModule mod_expires.c>
  ExpiresActive on
  ExpiresByType image/jpeg "access plus 3 day"
  ExpiresByType image/gif "access plus 3 day"
  ExpiresByType image/png "access plus 3 day"
  ExpiresByType text/css "access plus 3 day"
  ExpiresByType application/javascript "access plus 3 day"  
</IfModule>
php_value default_charset utf-8
AddType 'text/html; charset=utf-8' .html .htm .shtml