I am trying to run a codeigniter app but the following message is showing: 404 Page Not Found The page you requested was not found. asked 02 Apr '12, 15:03 Douglas Dias |
dear seanf! my code and route is class News extends CI_Controller{
$route['news/create'] = 'news/create'; $route['news/(:any)'] = 'news/view/$1'; $route['news'] = 'news'; $route['(:any)'] = 'pages/view/$1'; $route['default_controller'] = 'pages/view'; // all records upload but not issue single slug related record it is code igniter. please guide answered 10 Mar '14, 13:18 Muhammad Ham... What is the problem that you're having?
(10 Mar '14, 19:54)
seanf
|
I don't have a complete solution for this - just wanted to let you know that I answered your support ticket :)
In order to say something, more details are needed:
- did you replicate the standard Codeigniter directory structure or did you change it?
- do you use a .htaccess redirection or do you use standard CI uri's?
- did you edited the index, config and routes file? if yes, in particular, which is the routes succession?
- the 404 page is the one of the Webfaction server or the Codeigniter 404 error page?
the Codeigniter 404 error page. $route['news/create'] = 'news/create'; $route['news/(:any)'] = 'news/view/$1'; $route['news'] = 'news'; $route['(:any)'] = 'pages/view/$1'; $route['default_controller'] = 'pages/view';