URL Management and .htaccess

I followed the documentation here : http://www.yiiframework.com/doc/guide/1.1/en/topics.url on URL management and also the section 6 of it. Everything seems to be working perfectly on my local machine.

But when I migrated to a web server , I got the following error

My main.php configuration file has the following configuration for URL management


'urlManager'=>array(

        'urlFormat'=>'path',

        'showScriptName'=>false,

        'caseSensitive'=>false, 

        'rules'=>array(


            '<controller:\w+>/<id:\d+>'=>'<controller>/view',

            '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',

            '<controller:\w+>/<action:\w+>'=>'<controller>/<action>',


            'Search_Best_Boat_Deals'=>'site/vessels',




            '<slug:[a-zA-Z0-9-%]+>/'=>'site/Detailview',


            'message/inboxview/<messageId:[0-9]+>/'=>'message/inboxview',

            'message/view/<messageId:[0-9]+>/'=>'message/view',


            'message/sentview/<messageId:[0-9]+>/'=>'message/sentview',


            'message/compose/<id:[0-9]+>/<VesselId:[0-9]+>'=>'message/compose',

            'Gallery/ajaxUpload/gallery_id/<gallery_id:[0-9]+>'=>'Gallery/ajaxUpload',


            'site/activate/key/<key:[0-9]+>/mail/<mail:[0-9]+>'=>'site/activate',





            ),

        ),

My .htaccess file is as follows:




RewriteEngine on


    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f


    RewriteCond %{REQUEST_FILENAME} !-d


    # otherwise forward it to index.php

    RewriteRule ^([a-zA-Z0-9\-]+)$ index.php?page=$1 [L,NC]

I tried in lower cases as well >


'search_best_boat_deals'=>'site/vessels',

BUT it didn’t work!

ven if I manually enter website.com/search_best_boat_deals doesnot work …and even website.com/site/vessels gives me the same error… I dont know whats wrong with this .htaccess file… the site works perfectly on my laptop

This only happens with just one url or with all url?

The name of the controllers must be like this: NameController (With two upper letters). It can’t be like this: MyNameController.