#RewriteEngine on
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule . index.php
RewriteEngine On
RewriteRule (.*) web/$1 [L]
# Handle the case of backend, skip ([S=1]) the following rule, if current matched
#RewriteRule ^backend(/(.*))?$ backend/share/$2 [S=1]
# handle the case of frontend
#RewriteRule ^(.*)$ frontend/web/$1
# handle the case of frontend
#RewriteRule ^(.*).html$ frontend/web/$1 [L]
# Uncomment the following, if you want speaking URL
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^([^/]+/web)/.*$ $1/index.php