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

Last Updated On : 23rd June 2010

Leave a Reply

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