codeigniter removing index.php (possible problem with host) codeigniter removing index.php (possible problem with host) codeigniter codeigniter

codeigniter removing index.php (possible problem with host)


ok so after some trial and error I finally got it working. I setup my .htaccess file as follows. Note the '?' in RewriteRule.

RewriteEngine OnRewriteBase /outfitr/RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ index.php?$1 [L]

Then in config.php I set

$config['uri_protocol'] = 'REQUEST_URI';

Think this is down to the way some hosts setup their mod_rewrite module. Dreamhost and hostgator have the same problem.


http://codeigniter.com/wiki/mod_rewrite/

  1. If your installation is not in the server root you will need to amend the RewriteBase line from “RewriteBase /” to “RewriteBase /folder/”

The current .htaccess you have is re-routing all requests to /index.php, which as you said yourself is not there. You want them to route to /outfitr/index.php.

You can do this by changing the RewriteBase /outfitr/

If not, please give more detail.