I used the following.
My goal is to use CodeIgniter for some pages, and leave the other pages in Wordpress untouched. I only have a few steps to do it :
Copy CI folder at the Wordpress root
Modify the ? index.php ? of CI to add an include which will add WP functions to CodeIgniter :
@require '../wp-load.php';
require_once BASEPATH.'core/CodeIgniter.php';
Once this line added, Wordpress functions will be usable in CodeIgniter ; they will be used mainly for views.
Modify the .htaccess of WP to not rewrite CI's URLs :
After this line :
RewriteRule ^index.php$ - [L]
Add this line :
RewriteCond %{REQUEST_URI} !^/(codeigniter_folder|codeigniter_folder/.*)$
Then CI views can use WP functions.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…