title: Double link on form post when working on Local Host
body: <p>~</p>
  
  <p>I have tried to create a form and submit the data using a method from a CI controller, but when I press submit the link just doubles as follows:</p>
  
  <pre><code>http://localhost/1xtask/index.php/auth/localhost/1xTask/auth/login
  </code></pre>
  
  <p>I am using Xampp. I have double checked the CI config file and the HTACCESS.</p>
  
  <p>Config file relevant data:</p>
  
  <p><code>$config['base_url'] = 'localhost/1xTask/';</code></p>
  
  <p><code>$config['index_page'] = '';</code></p>
  
  <p>HTACCESS file:</p>
  
  <pre><code> RewriteEngine on
   RewriteCond $1 !^(index\.php|resources|robots\.txt)
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule ^(.*)$ index.php/$1 [L,QSA]
  </code></pre>
  
  <p>Still, I can't get it to work properly :(</p>
  
  <p>Form action looks like this in browser: <code>&lt;form action="localhost/1xTask/auth/login" method="post" accept-charset="utf-8"&gt;</code></p>
  
  <p>I use <code>&lt;?php echo form_open('auth/login'); ?&gt;</code> and <code>&lt;?php echo form_close(); ?&gt;</code>  to create the form </p>
  
  <p>Thank you in advance!</p>