CodeIgniter & WordPress Integration Routing CodeIgniter & WordPress Integration Routing codeigniter codeigniter

CodeIgniter & WordPress Integration Routing


I think there are a couple of options:

1) You need to rename your controllers or controller methods so as not to conflict with the WP pages.

or

2) You configure your .htaccess to ignore all file name or folder requests and rewrite them as CI compatible queries.

Something on the order of

RewriteRule ^members/(.*?)$ /members/getMemberJSON/$1 [R]

Note: That's totally untested, but just an example.


I modified the Codeigniter index.php one.======================================require_once 'wp-load.php';above this line require_once BASEPATH.'core/CodeIgniter.php';Use Single .htaccess file in root wordpress folder<IfModule mod_rewrite.c>RewriteEngine OnRewriteBase /wordpressFolderName/CIFolderName/RewriteRule ^index\.php$ - [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /wordpressFolderName/CIFolderName/index.php [L]</IfModule>