I need the default controller to load and display the default action

Hello everyone, I am following the Yii book by Larry Ullman. I have written a .htaccess file and saved in my root folder. This is my .htaccess file:

                        <!ifModule mod_rewrite.c>

                        RewriteEngine on

                        RewriteCond %{REQUEST_FILENAME} !-f

                        RewriteCond %{REQUEST_FILENAME} !-d

                        RewriteRule ^(.*)$ index.php/$1


Then in the protected/config/main.php file, I set ‘showScriptName’=>false, like the following:











The problem is when I go to a strange path with strangecontroller eg when I go to localhost/mysite.com/strangecontroller it gives me an error:


Unable to resolve the request "strangecontroller".

The problem is I want to load the default controller and the default action but it gives giving me that error.

Please help! Thanks in advance.

have you tried http://localhost/mysite.com/strange ?