Yii Urlmanager

Hi, i’m new to yii. Now i’m doing projects using yii. in my application needs to remove comments to urlManager. But, when i remove urlManager comments it showing like this…

Not Found

The requested URL /personalTrainer/site/login was not found on this server.

           I saved my application under /var/www/. and my .htaccess file is like this....

#RewriteCond %{ENV:REDIRECT_STATUS} 200

Options +FollowSymLinks

IndexIgnore /

RewriteEngine on

#RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . index.php

RewriteRule .* - [L]

I am using apache server. My urlManager as follows in my config/main.php

           'urlManager' => array(

        'urlFormat' => 'path',

        'showScriptName' => false,

        'rules' => array(

            'login' => 'user/login',

            '<controller:\w+>/<id:\d+>' => '<controller>/view',

            '<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',

            '<controller:\w+>/<action:\w+>' => '<controller>/<action>',



                   can i know where i did mistake. pls help me how to solve this problem.

Why are you referring to /personalTrainer/ if you placed the application directly in the webroot. You could either decide to put /personalTrainer/ in the url rules (see the docs on url rules on howto use different patterns), move your application to a dir called personalTrainer or exclude that part when referring to the app.