routes.php and one uri segment ending in .php |
|||
|---|---|---|---|
| Date: | 02/29/2008 | Severity: | Major |
| Status: | Bogus | Reporter: | Hummer |
| Version: | 1.5.4 | ||
| Keywords: | |||
Description
Trying to get routes.php to route uri which ends in “.php”. The uri has only one segment.
Code Sample
in routes.php
$route['testing.php'] = "welcome";
in browser
http://www.mysite.com/index.php/testing.php
Expected Result
the code igniter welcome page
Actual Result
404 page not found
Comment on Bug Report
| Posted by: Derek Jones on 29 February 2008 6:49pm | |
|
|
Greetings, I do not see a forum thread associated with this bug report, and it looks like it may not be a bug. Have you first read the bug reporting guidelines and used the Bug Report Forum to get help confirming that this is a bug before reporting? My guess is that you are using .htaccess to remove index.php from the URL, and the rule is not rewriting the above request to CodeIgniter, triggering a server generated 404. If not, please update to the latest version of CodeIgniter and see if your issue is resolved. Thanks! |
