title: .htaccess on LAMP
body: <p>I've built a test project on Codeigniter on my mac (using MAMP), and am now trying to migrate it to my Linux machine (ubuntu, LAMP), to do some tesing.</p>
  
  <p>Apparently, it doesn't read the .htaccess file, since the URLs don't work (get 404) if the index.php bit is missing (on the mac it worked just fine). Should the syntax of the .htaccess file be different on LAMP and on MAMP?
  This is the syntax I'm using now:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond $1 !^(index\.php|robots\.txt|favicon\.ico|uploads|media|myResources)
  RewriteRule ^(.*)$ index.php?/$1 [L]
  </code></pre>
  
  <p>I've read somewhere that you should restart the server after editing .htaccess. Problem is, I don't know how to do it on the Linux machine.</p>