I need some help with routing |
[eluser]JesseR[/eluser]
I have a url that currently looks like this : http://www.domain.com/anything/anything_...YCODE.html http://www.domain.com/anything/ITEMID.html MY CI file for CATEGORIES is index.php/categories/getCategories/CATEGORYCODE MY CI file for ITEMS is index.php/categories/getItem/ITEMCODE My current website that does not use CI uses this link structure. Can anyone advise how I can setup routing to work with the above link structure?
[eluser]danmontgomery[/eluser]
There's an example in the user guide explaining almost exactly what you want. Quote:If you prefer you can use regular expressions to define your routing rules. Any valid regular expression is allowed, as are back-references. http://ellislab.com/codeigniter/user-gui...uting.html |
Welcome Guest, Not a member yet? Register Sign In |