title: .htaccess not working for CodeIgniter project on Mac OS
body: <p>I used CodeIgniter for most of my projects a while back. I'm getting back into the swing of things and hitting some bumps. I'm now developing on Mac OSX Mavericks and using MAMP as my Apache server. Everything seems to be running okay but I can't get rid of the index.php in the URL the whole time. I have added in the .htaccess file into the root of the project. Here's the file:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /ez-recruits/
  
  #Removes access to the system folder by users.
  #Additionally this will allow you to create a System.php controller,
  #previously this would not have been possible.
  #'system' can be replaced if you have renamed your system folder.
  RewriteCond %{REQUEST_URI} ^system.*
  RewriteRule ^(.*)$ /index.php?/$1 [L]
  
  #When your application folder isn't in the system folder
  #This snippet prevents user access to the application folder
  #Submitted by: Fabdrol
  #Rename 'application' to your applications folder name.
  RewriteCond %{REQUEST_URI} ^application.*
  RewriteRule ^(.*)$ /index.php?/$1 [L]
  
  &lt;/IfModule&gt;
  
  &lt;IfModule !mod_rewrite.c&gt;
      # If we don't have mod_rewrite installed, all 404's
      # can be sent to index.php, and everything works as normal.
      # Submitted by: ElliotHaughin
  
  ErrorDocument 404 /index.php
  &lt;/IfModule&gt; 
  </code></pre>
  
  <p>I'm not super clued up about how to make these files so generally I just get them from CodeIgniters website. I'm getting a 404 Error without the index.php in the URL and if I manually type it in, the page will load fine. Also, I was developing in Firefox and I was getting an error saying "Firefox could not understand the address" without the index.php in the URL. I do have mod_rewrite activated on the Apache server. I have removed index.php in my config file for the index page and I have set the base_url to </p>
  
  <blockquote>
    <p>$config['base_url']   = 'localhost:8888/ez-recruits';</p>
  </blockquote>
  
  <p>I did some research and found that changing the httpd.conf file helped someone else, so I changed the part of it to this: </p>
  
  <pre><code>&lt;Directory /&gt;
      Options FollowSymLinks
      AllowOverride All
      Order deny,allow
      Deny from all
  &lt;/Directory&gt;
  </code></pre>
  
  <p>But it has changed nothing. Does anybody know what I could be doing wrong or if this is just a Mac problem? Also, with all of these configurations, will I struggle to develop alongside someone else who is developing on a Windows machine?</p>
  
  <p>Thanks in advance.</p>