seedss/yii2-angular-seed/master/.htaccess - Htaccess File

seedss/yii2-angular-seed/master/.htaccess

Options FollowSymLinks
AddDefaultCharset utf-8

<IfModule mod_rewrite.c>
    RewriteEngine On

    # the rewrite rule for app resources
    RewriteRule ^app/(.*)(css|js|gif|jpg|jpeg|txt|png)$  /apps/app/$1$2 [L]

    # the main rewrite rule for the backend application
    RewriteCond %{REQUEST_URI} ^/admin
    RewriteRule ^admin(.*) /backend/web/$1 [L]

    # the main rewrite rule for the frontend application
    RewriteCond %{REQUEST_URI} ^/api
    RewriteRule ^api(.*) /frontend/web/$1 [L]

    # the main rewrite rule for the apps
    #RewriteCond %{REQUEST_URI} !^/(app|vendor|backend/web|admin|frontend/web|api)
    RewriteRule ^(index.html)?$ /apps/index.html [L]

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

On Github License

Files

Download PDF of Htaccess file
REQUEST_URI

Comments

Apache