I have this URL working fine
http://www.example.com/jobsbylocation/76-jubilee-hills
But in Pagination URL it is showing ,
First Page : http://www.example.com/jobsbylocation/index/76-jubilee?title=hills
Second Page: http://www.example.com/jobsbylocation/index/76-jubilee?title=hills&Employerjobpost_page=2
Third Page : http://www.example.com/jobsbylocation/index/76-jubilee?title=hills&Employerjobpost_page=3
.
.
if i click on pagination url it is throwing an error that ‘id’ is missing.
Here is my URL Manager Structure,
‘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>',
'<controller:(jobsbydistrict|jobsbyindustry|jobsbylocation|jobsbycompany|jobsbyemploymenttype)>/<id>-<title>'=>'<controller>/index',
),
'showScriptName'=>false,
),
please suggest me, how can i change my url structure to,
First Page : http://www.example.com/jobsbylocation/76-jubilee-hills
Second Page: http://www.example.com/jobsbylocation/76-jubilee-hill?Jobpost_page=2
Third Page : http://www.example.com/jobsbylocation/76-jubilee-hills?Jobpost_page=3
Thanks in advance…