After installing Yii2 advanced and uploading it to hosting I got 403 error at main page. But admin panel is working normally and also /about, /contact and other pages. And if I create index.php at root folder it’s openning too. What could cause that error? .htaccess?
Root .htaccess:
<IfModule mod_autoindex.c>
Options -Indexes
</IfModule>
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
IndexIgnore */*
RewriteRule ^adminpanel/(.*)?$ /backend/web/$1 [L,PT]
RewriteRule ^([^/].*)?$ /frontend/web/$1
</IfModule>
.htaccess at frontend/web and backend/web are equal:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php