kvazarum/gapchichru/master/.htaccess - Htaccess File

kvazarum/gapchichru/master/.htaccess

<IfModule mod_rewrite.c>

    Options +FollowSymlinks

    RewriteEngine On

</IfModule>

 

<IfModule mod_rewrite.c>

    # deal with admin first

    RewriteCond %{REQUEST_URI} ^/(admin)

    RewriteRule ^admin/assets/(.*)$ backend/web/assets/$1 [L]

    RewriteRule ^admin/css/(.*)$ backend/web/css/$1 [L]

 

    RewriteCond %{REQUEST_URI} !^/backend/web/(assets|css)/

    RewriteCond %{REQUEST_URI} ^/(admin)

    RewriteRule ^.*$ backend/web/index.php [L]

 

    RewriteCond %{REQUEST_URI} ^/(assets|css|pics)

    RewriteRule ^assets/(.*)$ frontend/web/assets/$1 [L]

    RewriteRule ^css/(.*)$ frontend/web/css/$1 [L]

    RewriteRule ^pics/(.*)$ frontend/web/pics/$1 [L]

 

    RewriteCond %{REQUEST_URI} !^/(frontend|backend)/web/(assets|css|pics)/

    RewriteCond %{REQUEST_URI} !index.php

    RewriteCond %{REQUEST_FILENAME} !-f [OR]

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule ^.*$ frontend/web/index.php

</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, REQUEST_URI

Comments

Apache