Tried URI::uri_string() but can\'t get it to work with the base_url.
URL: http://localhost/dropbox/derrek/shopredux/ahahaha/hihihi Returns: dr
http://localhost/dropbox/derrek/shopredux/ahahaha/hihihi
dr
// For current url echo base_url(uri_string());