title: Htaccess Rewrite showing 404 not found
body: <p>I have this rewite rule in my htaccess file that removes index.php on the URL to just show the domain name</p>
  
  <pre><code>RewriteCond %{THE_REQUEST} /index\.php [NC]
  RewriteRule ^(.*?)index\.php$ /$1 [L,R=302,NC,NE]
  </code></pre>
  
  <p>But it seems to show 404 not found on all other directories. For example, I have a directory called admin and if I go to www.domain.com/admin I get 404 not found</p>
  
  <p>I also have this code above the RewriteCond code</p>
  
  <pre><code>RewriteCond %{REQUEST_URI} !^/admin [NC]
  </code></pre>
  
  <p>Here is my full htaccess file</p>
  
  <pre><code>RewriteEngine On
  
  RewriteCond %{REQUEST_URI} !^/admin [NC]
  RewriteCond %{REQUEST_URI} !^/status [NC]
  RewriteCond %{REQUEST_URI} !^/customer [NC]
  
  RewriteCond %{THE_REQUEST} /index\.php [NC]
  RewriteRule ^(.*?)index\.php$ /$1 [L,R=302,NC,NE]
  
  # Rewrites /services to be /home.php?id=services
  RewriteRule ^([a-zA-Z0-9-]+)/?$ /home.php?id=$1 [L,QSA]
  
  #BLOG
  # Rewrites /blog/this-is-a-blog-post to be /home.php?id=blog&amp;slug=this-is-a-blog-post
  RewriteRule ^([a-zA-Z0-9-]+)/([\w-]+)/?$ /home.php?id=$1&amp;slug=$2 [L,QSA]
  
  # Rewrites /blog/year2013/month12 to be /home.php?id=blog&amp;year=2013&amp;month=01
  RewriteRule ^([a-zA-Z0-9-]+)/year([0-9]+)/month([0-9]+)/?$ /home.php?id=$1&amp;year=$2&amp;month=$3 [L,QSA]
  </code></pre>