Module Url Working On Localhost But Not Working On Server

i have generated a module admin by gii and add module based authentication.application is running on virtual host as

and it module is working fine in localhost by url


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










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.


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 .

may be :

apache config , open the rewrite support(httpd.conf) :

LoadModule rewrite_module modules/

thanks for quick reply

But on server site is already working and url rewrite also as i am able to access login page by

but the problem occur when i add module in directory