maybe a .htaccess problem
-
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:
https://localhost/portal/
server CI url:
https://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 ,
https://localhost/portal/ci/welcome/
, works as expected but in an ajax call i get 404 Not Found pageI 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
- The topic ‘maybe a .htaccess problem’ is closed to new replies.