Welcome Guest, Not a member yet? Register   Sign In
.htaccess problem – banging my head against a wall
#1

[eluser]Thomas Edwards[/eluser]
I don’t know how many times I’ve setup CodeIgniter with a .htaccess file, but it’s more than a couple.

I’ve got my .htaccess file as so:
Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

And I’ve got my CI installation just how I always have it. If I type in /index.php/projects, I get the projects page, if I go to /projects I just get the welcome.php controller (ie the default controller defined in the routes.php)

Any ideas? I think I’ve read every .htaccess file on the CI forums.

I’ve even tried restarted Apache!
#2

[eluser]InsiteFX[/eluser]
Try this, you need to see which one works for you now!
Code:
$config['uri_protocol']    = 'REQUEST_URI';

InsiteFX
#3

[eluser]Thomas Edwards[/eluser]
Boom! Amazing – thanks very much. I figured it would be an .htaccess problem rather than a CI problem.




Theme © iAndrew 2016 - Forum software by © MyBB