htaccess for module

Uhm, I meet a Error 404 Unable to resolve the request"modules/controler/action" when access http://mysite.com/modules/controler/action

I tested localhost, it work. But after upload hosting, it fail :-??

I config htaccess like in document and it complete work on localhost.

Help me :(




# Enable mod_rewrite

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




'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>',				

			),

		),

is your hosting support url rewrite?

yes, they support. phpinfo:




Loaded Modules 	... mod_rewrite ...



Sorry, this is my faul. I createUrl with “/module/ctrl/act”. i fix “module/ctrl/act” and it work :D