perminder-klair/kato/master/.htaccess - Htaccess File

perminder-klair/kato/master/.htaccess

<IfModule mod_rewrite.c>
    #Options +FollowSymlinks
    RewriteEngine On
    
    # dev deals
    RewriteRule ^phpmyadmin/(.*)$ phpmyadmin/$1 [L]

    # deal with api
    RewriteCond %{REQUEST_URI} ^/(api)
    RewriteRule ^.*$ api/web/index.php [L]

    # deal with backend
    RewriteRule ^admin/assets/(.*)$ backend/web/assets/$1 [L]
    RewriteRule ^admin/css/(.*)$ backend/web/css/$1 [L]
    RewriteRule ^admin/js/(.*)$ backend/web/js/$1 [L]
    RewriteRule ^admin/img/(.*)$ backend/web/img/$1 [L]
    RewriteCond %{REQUEST_URI} ^/(admin)
    RewriteRule ^.*$ backend/web/index.php [L]

    # deal with frontend
    RewriteRule ^files/(.*)$ files/$1 [L]
    RewriteRule ^assets/(.*)$ frontend/web/assets/$1 [L]
    RewriteRule ^theme-assets/(.*)$ frontend/web/theme-assets/$1 [L]
    RewriteRule ^.*$ frontend/web/index.php

</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_URI

Comments

Apache