Url Management

Hi Friends,










i have using this url format,

but when i click contact, login it leads wrong url…

Note: i Dont want index.php in my Url

help on this

like Extension less url is need for me

from http://www.yiiframework.com/forum/index.php?/topic/7803-how-to-remove-index-php-from-url/












Hi bennouna,

i have add this urlManager to fresh applications,

url is nice but, Not Found error in localhost


Not Found

The requested URL /yii/testuserm/site/page/about was not found on this server."[/b]

can i remove index.php in root folder? is ther eany alteration i that code

Have you amended your .htaccess as well?

Options +FollowSymLinks

IndexIgnore */*

RewriteEngine on

# if a directory or a file exists, use it directly

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php

RewriteRule . index.php

Hi bennouna… in protected file having .htaccess and framework file also having .access file… little confusion in this

and can i paste above code directly to .htaccess file…

You have to paste it in your webroot, not in protected


im working in localhost , it too confusing me…

my folder structure








advance thanks, im newbie for this framework …

If I were you, I’d leave alone the .htaccess in protected and in framework.

Create a new one from the instructions above and save it in testuserm

I got this error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Well sorry, I may have misunderstood your folder structure.

Where do you have your main script? Your index.php?


1 www ->

2->framework… bla bla…




actually fresh installed application

http://tellibus.com/ nice…work in yii?

So you have to put your .htaccess where your index.php resides

tellibus.com? Well thanks. I don’t really find it nice. I have a new version but I haven’t finished its mobile version, so I’m just busy with clients projects.

And no Yii there. It just old plain HTML4 and PHP to retrieve the tweets by cron and to include them. I use a custom CSS grid based on 960.gs