CodeIgniter Forums
getting rid of useless URI segments - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: getting rid of useless URI segments (/thread-22857.html)



getting rid of useless URI segments - El Forum - 09-22-2009

[eluser]timaksu[/eluser]
hi guys. right now i have a class called category, and the "index" function of it displays posts from category with the ID in the 3rd segment of the URI. so i was looking to create something like this:

http://www.url.com/category/1

but to access it, i need to do this:

http://www.url.com/index.php/category/index/1

those indexs arent very nice... any way i can get rid of them?


getting rid of useless URI segments - El Forum - 09-22-2009

[eluser]Phil Sturgeon[/eluser]
You can do this using URI Routing.