If you’re using CodeIgniter on Mac OS X, and you have a .htaccess file that looks something like this:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [L]
If you’re finding that it doesn’t seem to be working, and you’re getting 404’s when trying to access any controller other than the front controller, you might want to check on your main httpd.conf file to make sure that you don’t have an AllowOverride None that is preventing your .htaccess directives from being executed.
The main apache configuration file on Leopard is here:
/private/etc/apache2/httpd.conf
Hopefully this saves someone a couple of hours and a couple of Tylenol.




Really did save a couple of hours and couple tylenol
thanks
Extremely helpful. Thank you for posting! Saved my night!
Hamilton
This is not working.
i’m using Mac OS X Lion
Hey Andre,
Sorry to hear it – this was a tip for either Leopard or Snow Leopard (can’t remember which) – I haven’t upgraded to Lion yet.
if this is not working then check /private/etc/apache2/users/YOURNAME.conf
set AllowOverride to All here too