Passing a full url in the uri - 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: Passing a full url in the uri (/showthread.php?tid=13836) |
Passing a full url in the uri - El Forum - 12-08-2008 [eluser]bgougent[/eluser] Is it possible to pass a full url as parameter in CI without setting Code: $config['enable_query_strings'] = TRUE; So the idea will be: Code: login/http://www.site.com/pagemore Code: http://www.site.com/pagemore I have already thought about session en the referrer. But I need to use also this login from site that will not use CI. Passing a full url in the uri - El Forum - 12-08-2008 [eluser]xwero[/eluser] You could replace the forward slashes with something else to prevent CI from seeing the url as segments. Passing a full url in the uri - El Forum - 12-08-2008 [eluser]Phil Sturgeon[/eluser] url_encode() could do the trick, but you'd need to all some extra characters in your URL's. For login redirection I prefer to use sessions, that would be one way to avoid this issue. |