title: Moving Codeigniter Project to Amazon EC2, htaccess and ModRewrite Problems
body: <p>I am attempting to move my Codeigniter projects from a shared hosting service to Amazon EC2 and am running into some challenges with my .htaccess settings.  These settings enabled me to not have to include index.php in the url.  My previous .htaccess is shown below and worked as expected with my previous hosting provider:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
     RewriteEngine On
     RewriteBase /simple.com/
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteRule ^(.*)$ index.php/$1 [L]
  &lt;/IfModule&gt;
  
  &lt;IfModule !mod_rewrite.c&gt;
     ErrorDocument 404 /index.php
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>With my Amazon EC2 instance, I now have full access to the LAMP stack and have confirmed that the Apache Mod_Rewrite module is enabled.</p>
  
  <p>I have set up my EC2 instance with two Virtual Host directories, one for each of my sites.  Both sites serve up their CI applications as expected, but require index.php to be in the url.</p>
  
  <p>I've tried inserting my Amazon EC2 public path into the .htaccess file as follows but still no luck:</p>
  
  <pre><code>RewriteBase /ec2-55-27-191-14.compute-1.amazonaws.com/simple/
  </code></pre>
  
  <p>I am sure this is 100% user error on my part and would greatly appreciate your diagnosis!</p>