title: CodeIgniter and Javascript url-rewriting clash
body: <p>My project is setup in CodeIgniter. To cleanup CI's url I added a RewriteRule to the htaccess of the page which removes the ugly 'index.php':</p>
  
  <pre><code>RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule .* index.php/$0 [PT,L]
  </code></pre>
  
  <p>This rule rewrites:</p>
  
  <pre><code>https://baseurl/index.php
  </code></pre>
  
  <p>to</p>
  
  <pre><code>https://baseurl/
  </code></pre>
  
  <p>Now, 
  I also want to use javascript deeplinking, because the project relies heavily on Ajax page refreshes. The deeplink looks like this:</p>
  
  <pre><code>https://baseurl/#/deeplink
  </code></pre>
  
  <p>Problem is: The rewrite rule deletes my beatifully injected deeplink and redirects the user to the root site...
  How can i get rid of the index.php without deleting my deeplink on a hard page refresh?</p>
  
  <p>Thanks!</p>
  
  <p>Dave Timmerman</p>