Url encoded forward slash in MVC or codeignitor app urls

By | June 23, 2010

When using PATH_INFO , the urls of codeignitor apps or your custom MVC looks like this


Now if the parameters contain a forward slash then you would urlencode it as :


But opening that kind of URL would give an error : Page Not Found

This happens if AllowEncodedSlashes directive of Apache is not turned on. More Here. This directive should be turned on to allow those sort of Urls. And for codeignitor $config['permitted_uri_chars'] should also be checked to allow forward slash in uri characters.

Reference :
1. Apache Documentation

About Silver Moon

A Tech Enthusiast, Blogger, Linux Fan and a Software Developer. Writes about Computer hardware, Linux and Open Source software and coding in Python, Php and Javascript. He can be reached at [email protected].

Leave a Reply

Your email address will not be published. Required fields are marked *