Reputation: 711
I have defined route for particular URL, but with route params is not working, with same URL without route params is working, here is my URL for that
https://XXXX.com/username/post/details/10425/50
And its for i have defined below route
$route['(:any)/post/(:any)/(:any)/(:any)'] ='post/details/$1/$2';
10425
and 50
is my 2 params, which is not working for me, can anyone please help me to resolve this issue?
Upvotes: 0
Views: 30
Reputation:
$route['(:any)/post/(:any)/(:any)/(:any)'] ='post/details/$1/$2';
Should be :
$route['(:any)/post/(:any)/(:any)/(:any)'] ='post/details/$3/$4';
Since it's the 3rd and 4th parameters, not 1st and 2nd.
Upvotes: 1