CodeIgniter Forums
url encoded forward slashes breaking my app - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: url encoded forward slashes breaking my app (/thread-13446.html)



url encoded forward slashes breaking my app - El Forum - 11-22-2008

[eluser]Ian Cook[/eluser]
i'm trying to create a url string that works like this:

Code:
/app/process/example.com/index.html

so in other words,

Code:
/app/process/$URL

the forward slashes in the URL will of course be a problem accessing uri segments, so i'll go ahead and url encode the URL portion:

Code:
/app/process/example.com % 2Findex.html

.. but now I just get a 404 saying ...

Quote:Not Found

The requested URL /app/process/example.com/index.html was not found on this server.

it appears that my url encoding of forward slashes breaks CI's URI parser.

what can i do to get around this problem?

EDIT: wow, it's hard to even say % 2 F all together in this post...


url encoded forward slashes breaking my app - El Forum - 11-23-2008

[eluser]Ian Cook[/eluser]
issue resolved here:

http://stackoverflow.com/questions/311801/url-encoded-forward-slashes-breaking-my-codeigniter-app