Htaccess File

sasaandonov/ims/master/.htaccess

REQUEST_FILENAME, REQUEST_URI
Options +FollowSymlinks
RewriteEngine On

# deal with admin first
RewriteCond %{REQUEST_URI} ^/ims/(adminpanel)
RewriteRule ^adminpanel/assets/(.*)$ backend/web/assets/$1 [L]
RewriteRule ^adminpanel/css/(.*)$ backend/web/css/$1 [L]

RewriteCond %{REQUEST_URI} !^/ims/backend/web/(assets|css)/
RewriteCond %{REQUEST_URI} ^/ims/(adminpanel)
RewriteRule ^.*$ backend/web/index.php [L]

RewriteCond %{REQUEST_URI} ^/ims/(assets|css)
RewriteRule ^assets/(.*)$ frontend/web/assets/$1 [L]
RewriteRule ^css/(.*)$ frontend/web/css/$1 [L]

RewriteCond %{REQUEST_URI} !^/ims/(frontend|backend)/web/(assets|css)/
RewriteCond %{REQUEST_URI} !index.php
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ frontend/web/index.php
Exit mobile version