In httpd.conf look for,
LoadModule rewrite_module modules/mod_rewrite.so
(remove # from the begining of line if not already removed.)
OR
In wamp click on wampserver-> Apache -> Apache Modules and enable rewrite_module.
Create .htaccess in directory where your index.php is, and paste following code:
IndexIgnore */*
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
And in protected/config/main.php
'urlManager' => array(
'urlFormat' => 'path',
'showScriptName' => false,
'rules' => array(
'<controller:\w+>/<id:\d+>' => '<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
'<controller:\w+>/<action:\w+>' => '<controller>/<action>',
),
),
If still not getting clean url,goto virtual host config file "httpd-vhosts" incase of you are using it, and paste in your config,
<Directory "C:/wamp/www">
AllowOverride All
</Directory>