subash
(Subrahmanyam Bandreddi)
February 6, 2014, 7:42am
1
Dear Friends,
Need help in achieving following…
My Current URL : http://www.example.com/jobsby/district/jobs/25-krishna
My Desired URL : http://www.example.com/jobsbydistrict/25-krishna
When i use "http://www.example.com/jobsbydistrict/25-krishna " it is redireciting to 404 error page.
But when i use "http://www.example.com/jobsbydistrict/25 " it is redirecting to correct page.
As per my R&D url’s last slug is mixed with alpha numerics and Default “index” action considering only numerics parameters. If given alpha numerics in “index” action it is redirecting to 404 page.
plz suggest where i need to change.
subash
(Subrahmanyam Bandreddi)
February 7, 2014, 6:31am
2
One of facebook friend suggested to change in "config/main.php" Urlmanager section
Currently it is,
‘urlManager’=>array(
'urlFormat'=>'path',
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
'showScriptName'=>false,
),
plz some one suggest & post updated code.
softark
(Softark)
February 9, 2014, 12:23am
3
[color="#556B2F "]/* Moved from "Bug Discussions" to "General Discussion for Yii 1.1.x" */[/color]