I’ve completed a small app and moved to development server, which is Linux and everything works fine. When I moved the code to production server, it starts to generate 404 for every urls except the home page. 404 is generated by Apache, not by Yii.
I checked for case sensitivity, htaccess, but in vain, because the same works good in development linux server. In the production server, if I access Urls using get format, I’m able to access all pages. Only path format is not working.
My urlMaager
'urlManager'=>array(
'showScriptName' => false,
'urlFormat' => 'path',
'rules' => array(
'' => 'tab/index',
'<controller:\w+>/<action:\w+>' => '<controller>/<action>',
),
),
.htaccess file
Rewrite Engine
<IfModule mod_rewrite.c>
RewriteEngine on
if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
otherwise forward it to index.php
RewriteRule . index.php
</IfModule>
I checked for apache rewrite module in prod server and it exists. Can anyone help me?