Htaccess File

syedmaaz/marxmall-/master/.htaccess

REQUEST_FILENAME, REQUEST_URI
RewriteEngine On

# 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|js|images|upload)/ 

RewriteCond %{REQUEST_URI} ^/(admin)  

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

RewriteCond %{REQUEST_URI} ^/(assets|css|js|images|uploads)  

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

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

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

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

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

RewriteCond %{REQUEST_URI} !^/(frontend|backend|common)/web/(assets|css|js|images|uploads)/  

RewriteCond %{REQUEST_URI} !index.php

RewriteCond %{REQUEST_FILENAME} !-f [OR]

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^.*$ frontend/web/index.php
Exit mobile version