soanni/yii_rest/master/.htaccess
#RewriteEngine on #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #RewriteCond %{REQUEST_URI} ^/admin #RewriteRule ^admin(/.+)?$ /backend/web/$1 [L,PT] # For Frontend #RewriteCond %{REQUEST_URI} !index.php #RewriteCond %{REQUEST_FILENAME} !-f #RewriteRule ^(.*)$ /frontend/web/$1
Files
![REQUEST_FILENAME, REQUEST_URI](https://www.askapache.com/s/u.askapache.com/htaccess-file/2016/github/soanni/yii_rest-htaccess.png)