Welcome Guest, Not a member yet? Register   Sign In
nginx, ispconfig & codeigniter - remove index.php
#1

[eluser]ZioN[/eluser]
Hi,

I am developing local with Apache with mod_rewrite. But my live server runs nginx with ispconfig. I'm having a hard time making my website work.

The first part works, I can access the site and it works (www.DOMAIN.com/SUBDOMAIN). But as soon as I want to access a controller it shows a 404.

I changed base_url after uploading it. I modified uri_protocol aswel
Code:
$config['uri_protocol'] = 'REQUEST_URI';

Is anyone with experience with nginx + ispconfig able to help me on this?


Edit:
The current .htaccess I use with apache in order to remove index.php:
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /ci/

RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]

RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
#2

[eluser]ZioN[/eluser]
Update: I narrowed the issue down to this:
I can access my controllers/pages using index.php?/CONTROLLER but index.php/CONTROLLER does not work.




Theme © iAndrew 2016 - Forum software by © MyBB