CodeIgniter Forums
Custom URL routing - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: Custom URL routing (/thread-56337.html)

Custom URL routing - El Forum - 12-11-2012

Hi All,

How do i route missing parameters like this?

This is the full url


However i want to route this url if it is missing 1 or 2 parameters
Please help. Thanks in advance

Custom URL routing - El Forum - 12-12-2012

Check if the parameters have values in your controller. If not, redirect to the default.

Remember you can give parameters defaults, also, if they are not present.