• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
getting rid of useless URI segments

#1
[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?

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.