md-nurul-islam/simple-ecom/master/.htaccess
# prevent directory listings
Options -Indexes
# follow symbolic links
Options FollowSymlinks
RewriteEngine on
# End the processing, if a rewrite already occurred
RewriteRule ^(frontend|admin)/web/ - [L]
RewriteCond %{REQUEST_URI} "/uploads/" [OR]
RewriteCond %{REQUEST_URI} "/public/"
RewriteRule (.*) $1 [L]
RewriteCond %{REQUEST_URI} ^/admin/$
RewriteRule ^(admin)/$ /$1 [R=301,L]
RewriteCond %{REQUEST_URI} ^/admin
RewriteRule ^admin(/.+)?$ /backend/web/$1 [L,PT]
RewriteCond %{REQUEST_URI} ^.*$
RewriteRule ^(.*)$ /frontend/web/$1
On Github License
Files