title: Codeigniter Routes not Redirecting
body: <p>I am making use of Tank_auth to handle registrations, logins, etc. My CI sits in a subfolder of my domain root e.g. www.domain.com/account/</p>
  
  <p>An Example:</p>
  
  <p>The login controller is as such <strong>auth/login</strong> so my url is <strong>www.domain.com/account/auth/login</strong></p>
  
  <p>I would like to change <strong>www.domain.com/account/auth/login</strong> to <strong>www.domain.com/account/login</strong> so in my routes.php config file I added this line:</p>
  
  <pre><code>$route['login'] = 'auth/login';
  </code></pre>
  
  <p>Now I would expect that when I visit <strong>www.domain.com/account/auth/login</strong> I get taken to  <strong>www.domain.com/account/login</strong>. And if I visit <strong>www.domain.com/account/login</strong> I would remain on that url and the page should load correctly.</p>
  
  <p>Instead when I visit <strong>www.domain.com/account/auth/login</strong> I see the login page and when I visit <strong>www.domain.com/account/login</strong> I get redirected to <strong>www.domain.com/account/auth/login</strong>.</p>
  
  <p>This behaviour seems opposite to what the documentation describes as well as others on SO. I have tried swapping the key and value for the <em>$route</em> variable but that just leads to 404s for both urls above.</p>
  
  <p>Can anyone point me in the right direction? What am I doing wrong here?</p>
  
  <p>Thanks</p>
  
  <p><strong>[EDIT] - contents of htaccess</strong></p>
  
  <pre><code>RewriteEngine on
  
  # remove index.php from url
  RewriteCond $1 !^(index\.php|img|js|css|robots\.txt|favicon\.ico)
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ /account/index.php/$1 [L]
  
  # redirect non-www to www
  RewriteCond %{HTTP_HOST} !^www\.
  RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
  </code></pre>