# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
#php_value session.cookie_domain ".myanimeshelf.com"
php_value upload_max_filesize 10M
php_value memory_limit 1G
php_value post_max_size 10M
php_value max_input_time 300
php_value max_input_vars 10000
php_value suhosin.post.max_vars 10000
#php_value upload_tmp_dir /home/81308/data/upload_tmp
#php_value display_errors 0

AddDefaultCharset utf-8
AddCharset utf-8 *
<IfModule mod_charset.c>
    CharsetSourceEnc utf-8
    CharsetDefault utf-8
</IfModule>

<IfModule mod_rewrite.c>
	RewriteEngine On


</IfModule>

<IfModule mod_rewrite.c>
  Options FollowSymLinks
  RewriteEngine On

  #должна быть равна CATS_BASE но без первого слеша и с последним слешем
	RewriteCond %{REQUEST_FILENAME} autoresize/

	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-l
	RewriteCond %{REQUEST_FILENAME} !-d

	#путь к  скрипту ресайза
	RewriteRule ^(.*)$ /eva2/modules/image_resizer/autoresize.php [L]


	RewriteCond %{REQUEST_FILENAME} webp/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteCond %{REQUEST_FILENAME} !-d
    #путь к  скрипту ресайза
    RewriteRule ^(.*)$ /eva2/modules/image_resizer/webp.php [L]

  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-l
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ /eva2/init_v2.php [L] #new initer
  #RewriteRule ^(.*)$ /eva2/urlrewrite.php [L] #old initer
  #RewriteRule ^(.*)$ /close.php [L]
</IfModule>


<IfModule mod_expires.c>
    <FilesMatch "(?i)^.*\.(ico|flv|jpg|jpeg|png|gif|js|css|woff2|woff|ttf|otf|svg|ttf|woff|woff2|svg|webp)$">
    ExpiresActive On
    ExpiresDefault A2592000
    </FilesMatch>
</IfModule>

FileETag MTime Size

<IfModule mod_deflate.c>
        <IfModule mod_filter.c>
                # these are known to be safe with MSIE 6
                AddOutputFilterByType DEFLATE text/html text/plain text/xml

                # everything else may cause problems with MSIE 6
                AddOutputFilterByType DEFLATE text/css
                AddOutputFilterByType DEFLATE application/x-javascript application/javascript application/ecmascript
                AddOutputFilterByType DEFLATE application/rss+xml
                AddOutputFilterByType DEFLATE application/xml
        </IfModule>
</IfModule>