Htaccess File

zserg84/tender/master/.htaccess

REQUEST_URI, static
# Mod_Autoindex
<IfModule mod_autoindex.c>
    # Disable Indexes
    Options -Indexes
</IfModule>

# Mod_Rewrite
<IfModule mod_rewrite.c>
    # Enable symlinks
    Options +FollowSymlinks
    # Enable mod_rewrite
    RewriteEngine On

    # Backend redirect
    RewriteCond %{REQUEST_URI} ^/backend
    RewriteRule ^backend/(.*)$ backend/web/$1 [L]

    # Customer redirect
    RewriteCond %{REQUEST_URI} ^/customer
    RewriteRule ^customer/(.*)$ customer/web/$1 [L]

    # Performer redirect
    RewriteCond %{REQUEST_URI} ^/performer
    RewriteRule ^performer/(.*)$ performer/web/$1 [L]

    # Statics redirect
    RewriteCond %{REQUEST_URI} ^/statics
    RewriteRule ^statics/(.*)$ statics/web/$1 [L]

    # Frontend redirect
    RewriteCond %{REQUEST_URI} ^(.*)$
    RewriteRule ^(.*)$ frontend/web/$1

</IfModule>
Exit mobile version