Revision #153 has been created by rackycz on Oct 7, 2019, 7:30:46 PM with the memo:
htaccess
« previous (#152) next (#154) »
Changes
Title
unchanged
Yii v2 snippet guide
Category
unchanged
Tutorials
Yii version
unchanged
2.0
Tags
unchanged
tutorial,beginner,yii2
Content
changed
[...]
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 **[...]