Welcome Guest, Not a member yet? Register   Sign In
How to skip/index/ in uri-segment
#1

[eluser]mojitoo[/eluser]
Hey!

I want the the ability to share links like this: www.example.com/products/d32rcdsfskl, but like it is now I have to write www.example.com/products/index/d32rcdsfskl, how can I skip the index in the middle?

Code:
function index() {

  echo $this->uri->segment(2);

  if($this->uri->segment(2)) {

I want the segment to be 2 in the index controller but it has to be 3 because of the annoying index in the middle. Please help me to delete that one.


Messages In This Thread
How to skip/index/ in uri-segment - by El Forum - 04-24-2012, 09:20 AM
How to skip/index/ in uri-segment - by El Forum - 04-24-2012, 09:59 AM
How to skip/index/ in uri-segment - by El Forum - 04-24-2012, 11:19 AM
How to skip/index/ in uri-segment - by El Forum - 04-24-2012, 11:59 AM
How to skip/index/ in uri-segment - by El Forum - 04-24-2012, 12:42 PM
How to skip/index/ in uri-segment - by El Forum - 04-24-2012, 12:45 PM
How to skip/index/ in uri-segment - by El Forum - 04-24-2012, 01:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB