I use codeigniter. I want to get the current location of the page without some segments.
Example:
my current location: "localhost/ci/site/home/all/1"
I want to get this: "localhost/ci/site/home/all"
I already tried: current_url() but it gives me:
"localhost/ci/site/home/all/1"
Sorry for my terrible english :(