Difference between #152 and #153 of
Yii v2 snippet guide

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 **
[...]
7 0
4 followers
Viewed: 274 966 times
Version: 2.0
Category: Tutorials
Written by: rackycz
Last updated by: rackycz
Created on: Sep 19, 2019
Last updated: a year ago
Update Article

Revisions

View all history