Yii remove / hide index.php

0
551
views

In Yii 1, to hiding index.php

Update protected/config/main.php, then configure the showScriptName property of the urlManager component to be false.

Create file .htaccess with following content.

Reference :
https://github.com/redzjovi/yii1tutorial/commit/5578f6fdaab2c14a6e0a4a81c9eb310b928a71c8
http://www.yiiframework.com/doc/guide/1.1/en/topics.url#creating-urls

LEAVE A REPLY

Please enter your name here
Please enter your comment!