.htaccess 928 Bytes
    AddDefaultCharset utf-8

    Options -Indexes +FollowSymlinks -MultiViews
    DirectoryIndex index.php

    AddHandler server-parsed .html
    AddOutputFilter INCLUDES .html 

    SetEnv TZ Europe/Kiev

    RewriteEngine On

<IfModule mod_rewrite.c>

    RewriteEngine On

    # the main rewrite rule for the frontend application
    RewriteCond %{REQUEST_URI} !^/(backend/web|admin)
    RewriteRule !^frontend/web /frontend/web%{REQUEST_URI} [L]
  
    RewriteCond %{REQUEST_URI} ^/frontend/web
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /frontend/web/index.php [L]
 
    RewriteCond %{REQUEST_URI} ^/backend/web
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /backend/web/index.php [L]

    RewriteCond %{REQUEST_URI} \.(htaccess|htpasswd|svn|git)
    RewriteRule \.(htaccess|htpasswd|svn|git) - [F]
    
</IfModule>