I have set up my yii application with the following configuration :
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName'=>false,
'rules'=>array(
'/'=>'',
'site'=>'',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
'<controller:\w+>'=>'<controller>',
)
My mod_rewrite is enabled . I have confirmed the same through multiple ways .
My htacccess reads :
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ /index.php?
I have come across multiple similar posts on the forums , tried everything suggested in them but it does not work out .
I can access the index page (home page) , however every other link is being looked at like a directory(giving a 404) instead of controller/action pair . httpd.conf has re write enabled . I looked at apache error logs and found the following :
[error] [client 182.68.214.169] File does not exist: /home/curatio/public_html/curatio/site, referer: 216.224.170.30/~curatio/curatio/
[Wed Jan 16 08:42:20 2013] [error] [client 182.68.214.169] File does not exist: /home/curatio/public_html/curatio/site, referer: 216.224.170.30/~curatio/curatio/site/contact
/home/curatio/public_html/curatio/ is where my website files are , however it is looking for a site folder .
Any ideas ? I would be happy to provide more details as well .
Note : It works fine with ?r (/216.224.170.30/~curatio/curatio/?r=site/contact) works just fine .
I have removed the http above to not embed a link .