404 issue with CodeIgniter |
Hi guy,
I'm working on a little URL shortner, just for fun, using CodeIgniter. I have a URL like this: Code: index.php/home/new_url/http%3A%2F%2Fgoogle.com Code: Not Found I should note that it isn't a 404 page generated by CodeIgniter, but the standard Apache 404 page. I can take off [i]http%3A%2F%2F[/i], or just the third URI segment entirely, and it goes to the new_url function perfectly. Maybe I'm having a brainfart and missing some wildly obvious thing. I'm not sure where the URL is becoming un-urlencoded. Thanks a bunch. I love you all.
the url you're setting after home I would use that as query string and not as a uri segment.
So something like /index.php/home/new_url?shorten=http://google.com Otherwise codeigniter would identify those // as new uri segments. Also you would have to check your settings to see if those : and . are allowed. But if you use query strings you don't need any of that.
Website: marcomonteiro.net | Blog: blog.marcomonteiro.net | Twitter: @marcogmonteiro | TILThings: tilthings.com
|
Welcome Guest, Not a member yet? Register Sign In |