Usually, when we run a Yii website, the URL will have index.php after the hostname. To remove this in appache web server, we need to enable the
mode_rewrite module and should create
index.php from the url on a website, add an
.htaccess file to your web root, with this text:
After adding .htaccess, go to /protected/config/ directory open main.php file add
'showScriptName'=>false to urlManager Array
That’s it you’re Done!
I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.
I am Arjun from Hyderabad (India). I have been working as a software engineer from the last 7+ years, and it is my passion to learn new things and implement them as a practice. Aside from work, I like gardening and spending time with pets.