I have created the module named enquiry in my project .
If I am running below line http://enqphp.intermesh.net/index.php?r=enquiry/Enquiryser/index/ then this URL is working perfectly. But I want it to be short like http://enqphp.intermesh.net/enquiry
For this, I have done some modifications in my main.php
file in URL manager
section:
return array(
'caseSensitive' => true,
'urlSuffix' => '/',
'showScriptName' => false,
'urlFormat' => 'path',
'rules' =>
array(
'/' => array('site/index'),
/* my files starting from here */
'<modules>/<controller:\w+>/<id:\d+>' => '<modules>/<controller>/view', '<modules>/<controller:\w+>/<action:\w+>/<id:\d+>' => '<modules>/<controller>/<action>',
'<modules>/<controller:\w+>/<action:\w+>/*' => '<modules>/<controller>/<action>',
'/enquiry/'=>'enquiry/Enquiryser/index',
),
)
But it's not working and throwing 404 page not found . Can anyone help me that what I am missing ?