Hi,
I try to implement CodeIgniter as ajax/database core for a WordPress portal.
But i have some problems with ajax call to CodeIgniter url's in subdirectory.
server portal directory:
/var/www/portal/
server CodeIgniter directory:
/var/www/portal/ci/
server portal url:
http://localhost/portal/
server CI url:
http://localhost/portal/ci/
WordPress comes with permalinks .htaccess file like:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /portal/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /portal/index.php [L]
</IfModule>
And because i want CodeIgniter url's without index.php i created the .htacces file like:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /portal/ci/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /portal/ci/index.php/$1 [L]
</IfModule>
Server CI url ,
http://localhost/portal/ci/welcome/
, works as expected but in an ajax call i get 404 Not Found page
I don't get it. Is some rules inherited from WordPress .htaccess or is something that i missed? What do you think?
P.S. I have all the config's for a rewriting working CodeIgniter