yii2 - enable pretty urls

yii2
voted: 1
vote
php yii2 url

To enable pretty (SEO friendly) url's edit configuration file as follows: For basic yii2 template Edit /config/web.php and add entry into components array like this:

'components' => [
    'urlManager' => [
            'enablePrettyUrl' => true,
        ],
],
working url: not entered
version: 2
Leave a Comment:
Characters left:
No comments yet.