Welcome Guest, Not a member yet? Register   Sign In
Having trouble removing index.php from URL

Hi, everyone.

I've installed codeigniter on my webserver under a subdirectory so that the main index.php is at http://dmdev.company.com/ci/index.php


Here's what's inside my .htaccess file:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

Here're my routes:
$route['default_controller'] = 'page';
$route['404_override'] = 'page';
$route['article/(:num)/(:any)'] = 'article/index/$1/$2';

http://dmdev.company.com/ci/index.php loads fine, but following links from it to the other controllers results in an Object not found! error.

So for example, the link to http://dmdev.company.com/ci/item/10/itemname results in an Object not found! error. However, if I manually insert "index.php" in the URL like so--http://dmdev.company.com/ci/index.php/item/10/itemname--the page loads fine.

I've tried changing the uri_protocol from AUTO to PATH_INFO to REQUEST_URI to ORIG_PATH _INFO to QUERY_STRING with no luck.

I would greatly appreciate any help on this...

Please keep an eye on this thread: http://ellislab.com/forums/viewthread/235584/

I'm pretty sure it's the same problem, so we might as well try to help you both together. Smile


Theme © iAndrew 2016 - Forum software by © MyBB