[Plugin: WP Code Igniter] [fixed] Page Not Found errors
-
I thought I’d mention how I fixed
Page not found
404 errors on the initial setup of a clean WP and WPCI installation.The problem I was having was that only the frontpage, the wp-admin, and non-permalinks were showing correctly. Using permalinks on pages gave me a 404 error.
The problem boiled down to an incorrectly configured /application/config/routes.php in the ci folder. I added a single line to make things work:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
...excluding these comments...
*/$route['(:any)'] = "welcome/index/$1"; # this line is new!
$route['default_controller'] = "welcome";
$route['404_override'] = '';/* End of file routes.php */
/* Location: ./application/config/routes.php */If I were the plugin maintainer, I’d mention this issue in the install instructions. Some CI users are not experienced enough to realize this problem right away.
Other than that, I’m very excited to use this plugin. I plan on using another plugin to insert php tags inside pages/posts, so that WP pages/post can function like a view in the MVC pattern.
https://www.ads-software.com/extend/plugins/wp-code-igniter/
- The topic ‘[Plugin: WP Code Igniter] [fixed] Page Not Found errors’ is closed to new replies.