Each and every application will be accessed by URL.Yii2.0 is having a flexibility to format the URL using urlManager components and we have to define it in web.php
To hide the 'index.php' and enable the Pretty URL in yiiframework 2.0, this post will help you. For this we have to configure the .htaccess and web.php file.
Yii 2.0 having the url manager to handle and create urls in different way. The URL manager is a built-in application component named urlManager.We can use use yii\helpers\Url; namespace.