CodeIgniter Forums
URL in CodeIgniter's application URL? - 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 in CodeIgniter's application URL? (/showthread.php?tid=47836)



URL in CodeIgniter's application URL? - El Forum - 12-24-2011

[eluser]dandys997[/eluser]
Hi,
topic may be misleading, so I'll try to explain it. I need to handle URL's as controller's method parameter. For example, I've got:

Code:
class Test extends CI_Controller
{
function redirect($url)
{
redirect(urldecode($url));
}
}

I'm processing $url variable with urlencode() before inserting to the link. But when I try to use that method, I get an error: 404, which is different to CodeIgniter 404 error message.

What can I do to reach the aim? Thanks in advance for help.