alejandrososa/AB/master/.htaccess
Options FollowSymLinks
AddDefaultCharset UTF-8
<IfModule mod_rewrite.c>
RewriteEngine On
#LIBRERIA
RewriteCond %{REQUEST_URI} ^/libreria
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^libreria(.*) /libreria/$1 [L]
# the main rewrite rule for the frontend application
RewriteCond %{REQUEST_URI} !^/(backend/web|admin|api|libreria)
RewriteRule ^(.*)$ /frontend/web/$1 [L]
#RewriteCond %{REQUEST_URI} ^.*$
#RewriteRule ^(.*)$ /frontend/web/$1 [L]
# redirect to the page without a trailing slash (uncomment if necessary)
#RewriteCond %{REQUEST_URI} ^/admin/$
#RewriteRule ^(admin)/ /$1 [L,R=301]
# the main rewrite rule for the backend application
RewriteCond %{REQUEST_URI} ^/admin
RewriteRule ^admin(.*) /backend/web/$1 [L]
#LIBRERIA
RewriteCond %{REQUEST_URI} ^/libreria
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^libreria(.*) /libreria/$1 [L]
#API
RewriteCond %{REQUEST_URI} ^/api
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward the request to index.php
RewriteRule . /api/web/index.php [L]
#FRONTEND
RewriteCond %{REQUEST_URI} ^/frontend/web
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#otherwise forward the request to index.php
RewriteRule . /frontend/web/index.php [L]
#BACKEND
RewriteCond %{REQUEST_URI} ^/backend/web
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward the request to index.php
RewriteRule . /backend/web/index.php [L]
#SEGURIDAD
RewriteCond %{REQUEST_URI} .(htaccess|htpasswd|svn|git)
RewriteRule .(htaccess|htpasswd|svn|git) - [F]
</IfModule>
On Github License
Files
Download PDF of Htaccess file