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

[eluser]dm_punks[/eluser]
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

/ci/index.php
/ci/.htaccess
/ci/application/

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

Here're my routes:
Code:
$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...
#2

[eluser]TheFuzzy0ne[/eluser]
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
#3

[eluser]dm_punks[/eluser]
Thanks!




Theme © iAndrew 2016 - Forum software by © MyBB