in the part urlManager of config/main.php file i entered:
'urlManager' => array(
'urlFormat' => 'path',
'showScriptName' => false,
'caseSensitive' => false,
'rules' => array(
'<controller:\w+>/<id:\d+>' => '<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
'<controller:\w+>/<action:\w+>' => '<controller>/<action>',
),
),
And in my .htaccess:
IndexIgnore */*
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
And my rewriting mod is enable.
I get this error by browser:
Not Found
The requested URL site.com/index.php/post/create was not found on this server.
Apache/2.2.22 (Ubuntu) Server at localhost Port 80
Where and What is my mistake or problem?