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.