1
I have two urls:
- http://you.axitech.com.br/busca/qualquercoisa
- http://you.axitech.com.br/busca/qualquercoisa/outracoisa
And I’m having these Routes:
- $route['search/(:any)'] = "Search/index/$1";
- $route['search/(:any)/(:num)'] = "Search/index/$2/$";
I would like to use an infinite url but can’t get the desired result. Can someone give me a help? When I access the first url, it works correctly but the second url does not work. What I need is represented in the image below:
So I was watching here and the $_POST is going correctly but is not entering the index, IE, if I try to overwrite and eliminate the /index gives error. Summarizing, I think the error is in the same routing.
Search/index/$2/$ seems to me a mere typo. wouldn’t it be just for the $(numerodoparametro) correctly in all cases? $1/$2/$3 etc?
– Bacco