How to remove index.php from URL
Rate Topic:
2 Votes

Hi!
Iam newbie to YII framework and using its latest vesion 1.1.0. I have enabled seo friendly urls through config file. My next problem is that how can I remove 'index.php' from URL. Iam using following .htaccess file.

Thanks man for the precise observation, it works!
I tried to match the settings for both my http and https virtual hosts when setting up SSL,
and, indeed, for some reason I overlooked "AllowOverride"... my bad.

I know this is a year old. But wanted to say it's great there's a good community here as I look around through the forum. If you had not asked the OP for his config file, the documentation or my interpretation of it had me actually trying to modify files in the framework to get this to work.After reading this I looked at the config file and saw the code already auto generated and commented out. Both the tour videos and the first couple chapters of the new yii book say it is easy to do but they don't tell how to do it. Frustrating but glad there's an active community. I'm really liking Yii since I started this morning. :-)