i attempted to make use of wordpress and codeigniter for any intelligent join between your best Content management systems and also the best PHP Framework. Really i needed to make use of codeigniter for database managemnent and wordpress for display. However i desired to use codeigniter inside wordpress. So, i've got a file tree like this:

- codigniter-core folder
  - .htaccess
- wordpress-core folder
- .htaccess
- index.php

How do i result in the wordpress .htaccess to pay for even the codeigniter ant not trowing 404 error in jquery ajax call. My current wordpress .htaccess file it's:

<IfModule mod_rewrite.c>

RewriteEngine On RewriteBase / RewriteCond % !-f #RewriteCond % !-d RewriteCond $1 !^/codeigniter-core/ RewriteRule ^(.*)$ /index.php/$1 [L]

I additionally attempted to request this to Wordpress Forums and Codeigniter Forums, but no answer. I believe it's hell of the rewrite condition or rule, but i'm not sure ...

I'd this issue when designing a controller file which i would call through the jQuery ajax method. This controller file incorporated wordpress-blog-header.php.

Whenever you range from the wordpress-blog-header.php inside a file outdoors of Wordpress framework WordPress does a cheque around the current file, and when it's not in the database it returns a 404. The job around would be to give a 200 status header following the wordpress-blog-header.php.

header("HTTP/1.1 200 OK");

Now (jQuery) ajax towards the file returns correctly with no 404.

This labored great... can't let you know how lengthy I had been searching for this answer. I suspected this had related to a header error because firebug demonstrated the response however the header were built with a 404. Thanks this saved me considerable time.

BTW I made use of this to repair the Quick Search plugin by Giulio Ganci

Just open the "search.php" file within the wordpress plugin folder and add

header("HTTP/1.1 200 OK");

Immediately after the very first type of code. Whenever your done the very first couple of lines of code within this file need to look such as this

    header("HTTP/1.1 200 OK");

    if (isset($_GET['s']) && trim($_GET['s']) != '') {