Welcome Guest, Not a member yet? Register   Sign In
Codeigniter and Wordpress in same root directory. Problems with index.php
#1

Hi,

My name is Martin Contreras, I have a similar problem.

My structure in Amazon linux ami is

var/www/html/
 
    web  ---> main web in wordpress
    demo ---> ci application
    caz  ---> another web in wordpress
    index.php --> redirect to web 

My problem is codeigniter is not working without index.php although $config['base_url'] = '' and my .htaccess in demo folder is like this:

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /demo/
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /demo/index.php [L]
</IfModule>

wordpress web htaccess

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /web/
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /web/index.php [L]
</IfModule>

Web works well but codeigniter demo project dont working

Not Found

The requested URL was not found on this server.

Only works if I put index.php

Thanks in advance

Martin Sad
Reply




Theme © iAndrew 2016 - Forum software by © MyBB