Category Archives: Yii2

Yii2 htaccess – How to hide frontend/web and backend/web COMPLETELY

Step 1 Create .htaccess file in root folder, i.e advanced/.htaccess and write below code. Options +FollowSymlinks 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)/ <—— RewriteCond %{REQUEST_URI} ^/(admin) … Continue reading

Posted in Yii2 | Leave a comment

Multiple Authencation

Multiple Authentication

Posted in Yii2 | Leave a comment

Access External Rest API both laravel and yii2

Posted in Yii2 | Leave a comment