Revision #150 was created by rackycz on Oct 6, 2019, 9:52:17 PM.
web folder
Content
[...]
'request' => [
// 'cookieValidationKey' => ...
'baseUrl' => '/basic', // add this line
],
```
Now things will work for you. But it might be needed to use different value for devel and productive environment. Productive web is usually in the root-folder so baseUrl should be en empty string. I did it like this:
```php
$baseUrlWithoutWebFolder = "";
if (YII_ENV_DEV) {
$baseUrlWithoutWebFolder = '/basic';
}
// ...
'baseUrl' => $baseUrlWithoutWebFolder
```
I will test this and if I find problems and solutions I will add them.
**Auto redirection from login to desired URL **
---