i have generated a module admin by gii and add module based authentication.application is running on virtual host as
www.localhost.com
and it module is working fine in localhost by url
www.localhost.com/admin
or
www.localhost.com/admin/default
but when i upload module on server and access by url it give error 404.
i have checked it on another server also.
my config/main.php as
'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>',
),
),
and .htaccess file as
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
Please tell me what i am missing.
EDIT------
Sorry for your time . i miss add this module to app config file
'modules' => array('admin'),
i do’t know how to close this thread .