CodeIgniter Forums
URL as parameter not working? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: URL as parameter not working? (/showthread.php?tid=35199)



URL as parameter not working? - El Forum - 10-22-2010

[eluser]Reynolds[/eluser]
hi,

I'm trying to pass an encoded URL to a Guest controller:

NOTE: I've added spaces in between here, because its getting decoded when anyone views this post.
Code:
http://mydomain.com/guest/original_url:http % 3A % 2F % 2F google.com % 2F

this is what i get.
Quote:Not Found

The requested URL /guest/original_url:http://google.com/ was not found on this server.

but if i removed the encoded slashes:

http://mydomain.com/guest/original_url:google.com

then it works right.

why? and how do I fix this?

Thanks


URL as parameter not working? - El Forum - 10-22-2010

[eluser]Phil Sturgeon[/eluser]
Try $config['uri_protocol'] = 'REQUEST_URI';