Welcome Guest, Not a member yet? Register   Sign In
404 error when using rewrite engine
#3

[eluser]PowerCode[/eluser]
I'm assuming that, as you've written, you have your CI application inside a folder named projects.

This one works fine for me, should do the same even with you.

Code:
RewriteEngine On
RewriteBase /projects
RewriteCond %{REQUEST_FILENAME} !-s
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

You don't need to explicitly specify file names to exclude from rewriting. The URL will not be re-written if the requested folder/file already exists on the system


Messages In This Thread
404 error when using rewrite engine - by El Forum - 12-16-2008, 12:52 AM
404 error when using rewrite engine - by El Forum - 12-16-2008, 12:53 AM
404 error when using rewrite engine - by El Forum - 12-16-2008, 06:06 AM
404 error when using rewrite engine - by El Forum - 12-16-2008, 08:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB