URL standard of Yii is : http://www.example.com/index.php?r=watch
Can I change this URL to `http://www.example.com/watch?v=6Pddo6kCxvM
(it's same youtube url)
Change structure url of Yii Framework
775 Views Asked by Huy Tran At
2
There are 2 best solutions below
0

Yes. In addition to using .htaccess/mod_rewrite for getting the webserver to invoke the proper script, you should also look into configuring the URL manager. It's covered in the Special Topics: URL Management
You would need to look into using
mod_rewrite
in your.htaccess
file for that.Here you go