Yii v2 snippet guide

Comparing #152 with #153

Revision #153 was created by rackycz rackycz on Oct 7, 2019, 7:30:46 PM.

htaccess

Content

[...]
Now you will need 2 files named .htaccess
- C:\xampp\htdocs\basic\web\\.htaccess
- C:\xampp\htdocs\basic\\.htaccess

The first one is mentioned in chapter **Nice URLs**
. and looks like this:
 
 
```
 
RewriteEngine on
 
RewriteCond %{REQUEST_FILENAME} !-d
 
RewriteCond %{REQUEST_FILENAME} !-f
 
RewriteRule . index.php [L]
 
```
 
The second is much simpler:

```
[...]
// ...

'request' => [
 
  // 'cookieValidationKey' => ...
 
  
'baseUrl' => $baseUrlWithoutWebFolder,
 
],
 

```

I will test this and if I find problems and solutions I will add them.

**Auto redirection from login to desired URL **
[...]