[eluser]C.T.[/eluser]
it because you said "I am passing a local url to a function in codeigniter as a $_GET parameter"
I can't see the point that why are you need to use a old URL format but not the "/" directly like REST services and write a controller or library to handle that?
Sorry for misunderstanding!