CodeIgniter Forums

Full Version: URL rewriting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Md. Ruzdi Islam[/eluser]
i want to rewrite url if the pattern is like following
in this url date and package_name will hit the 5th and 6th variable of the method (controller : home, method: index)

i use following which is working well

$route['(^(19|20)\d\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])$)']= "home/index/0/N/DealsAmount/ASC/$1";

but when i user for the 6th parameter ten it goes to 404 page.

$route['(^(19|20)\d\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])$)/(:any)']  = "home/index/0/N/DealsAmount/ASC/$1/$2";

it doesn't work. can you tel me why and what is the solution.

Thanks in advance