title: How can I remove index.php using Codeigniter on XAMPP?
body: <p>I can't hide Codeigniter index.php on XAMPP 1.7.3</p>
  
  <p><strong>URL:</strong></p>
  
  <pre><code>http://localhost/Servidor/agentesRainbow/index.php/agentes/tony
  </code></pre>
  
  <p><strong><em>tony</strong> is an argument</em></p>
  
  <p><strong>My actual .htaccess:</strong></p>
  
  <pre><code>   &lt;IfModule mod_rewrite.c&gt;
          RewriteEngine On
          RewriteBase /Servidor/agentesRainbow/
  
          #'system' can be replaced if you have renamed your system folder.
          RewriteCond %{REQUEST_URI} ^system.*
          RewriteRule ^(.*)$ /Servidor/agentesRainbow/index.php/$1 [L]
  
          #Checks to see if the user is attempting to access a valid file,
          #such as an image or css document, if this isn't true it sends the
          #request to index.php
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
  
          #This last condition enables access to the images and css folders, and the robots.txt file
         RewriteCond $1 !^(index\.php|images|css|public|)
         RewriteRule ^(.*)$ /Servidor/agentesRainbow/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.
          ErrorDocument 404 /application/errors/404.php
      &lt;/IfModule&gt;
  </code></pre>
  
  <p><strong>My routes.php:</strong></p>
  
  <pre><code>$route['agentes/(:any)'] = "agentes/index/$1";
  
  $route['default_controller'] = "agentes";
  $route['scaffolding_trigger'] = "";
  </code></pre>
  
  <p><strong>My config.php:</strong></p>
  
  <pre><code>$config['base_url'] = "http://localhost/Servidor/agentesRainbow/";
  $config['index_page'] = "";
  $config['uri_protocol'] = "AUTO";
  </code></pre>
  
  <p><strong>On httpd.conf:</strong></p>
  
  <pre><code>LoadModule rewrite_module modules/mod_rewrite.so
  
  &lt;Directory /&gt;
      Options FollowSymLinks
      AllowOverride None
      Order deny,allow
      Deny from all
  &lt;/Directory&gt;
  
  &lt;Directory /Servidor/agentesRainbow/&gt;
           Options FollowSymLinks
           AllowOverride All
           Order deny,allow
           Deny from all
  &lt;/Directory&gt;
  </code></pre>