Welcome Guest, Not a member yet? Register   Sign In
Remove index.php without setting $config['index_page'] to empty string [SOLVED]

I meant .htaccess and index.php, did not see entry #6

[code]$config['uri_protocol'] = "PATH_INFO";[code]


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

it is still returning 404s

Try QUERY_STRING with my suggestion.

My next suggestion would be to try using a virtual host in case global server setting are wonking your rewrites somehow. For example, are you even allowing the directives you call in your .htaccess file?

What is your operating system? It appears you are using Apache2. Correct? Are you using a pre-built stack: MAMP for Mac OSX, WAMP Server for Windows. etc.?

See AllowOverride in Apache manual.

You are getting getting Apache 404s, right? Not Codeigniter 404s?

Hi bretticus,

thanks a lot for your time, I'll try your suggestions right now.

I'm running a Mac OX 10.6.2 and I'm using the apache 2.0 that comes with it. CI is 1.7.1

Hi Noctrum,
Quote:You are getting getting Apache 404s, right? Not Codeigniter 404s?

apache I suppose, this the html generated:
&lt;title&gt;404 Not Found&lt;/title&gt;
<h1>Not Found</h1>
<p>The requested URL /item/2 was not found on this server.</p>

Hi bretticus,

you are probably right, this is on my httpd.conf

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all

[quote author="noctrum" date="1280964383"]You are getting getting Apache 404s, right? Not Codeigniter 404s?[/quote]

Thanks @noctrum, I will add that to my future preliminary questions when dealing with this. Duh! Smile

Try changing AllowOverride:

AllowOverride All

You are definitely getting apache 404 errors (means rewrite is not working because AllowOverride is set to None. Apache won't even read .htaccess files when configured like this.)

Theme © iAndrew 2016 - Forum software by © MyBB