403 error at backend in Yii2 advanced

Hello everyone,

I used Yii2 framework with advanced template. when i run my project on lampp, everything is fine, but when i copied and test on my host, backend of my project it get 403 http error. everythong looks fine and my files perimission is 0757, where did I go wrong?

This is my htaccess file

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php

mentioning standard HTTP error with no stack trace is going to help no body

1 Like

Hi, there is no stack trace or any errors. this is work well in my lampp. but when i want to run it in my host, i get 403 error.

403 is an exception thrown. Exceptions generates trace unless you have disabled it under log configuration

Hi, this is my stack trace.

2022-06-25 19:01:38 [37.202.224.96][-][-][trace][yii\base\Application::bootstrap] Bootstrap with yii\log\Dispatcher
2022-06-25 19:01:38 [37.202.224.96][-][-][trace][yii\web\UrlManager::parseRequest] Pretty URL not enabled. Using default URL parsing logic.
2022-06-25 19:01:38 [37.202.224.96][-][-][trace][yii\web\Application::handleRequest] Route requested: ''
2022-06-25 19:01:38 [37.202.224.96][-][-][trace][yii\base\Controller::runAction] Route to run: site/index
2022-06-25 19:01:38 [37.202.224.96][-][-][info][yii\web\Session::open] Session started
2022-06-25 19:01:38 [37.202.224.96][-][-][info][application] $_GET = []

Everything looks fine. what should i do?

can you show your log configurations?
Search any configuration with word log and paste the whole array of that section.Or remove sensitive information and paste whole web config file?