Part of the EllisLab Network

Bug Report

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

Page 1 of 1 pages
Posted by: Derek Jones on 29 February 2008 6:49pm
Derek Jones's avatar

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!

Name:

Email:

Location:

URL:

Remember my personal information

Notify me of follow-up comments?