title: Rewrite an URL without 302 redirect
body: <p>I would like to know, how can i rewrite an URL without the 302 redirection.<br />
  The website is targeted by 2 domains.</p>
  
  <ul>
  <li>The first domains <code>(domain1.com)</code> focus <strong>all the website</strong>.<br /></li>
  <li>The second domains <code>(domain2.com)</code> focus only one function to do an <strong>url shortener</strong></li>
  </ul>
  
  <p>Here is my <code>.htaccess</code> : </p>
  
  <pre><code>Options +FollowSymlinks
  RewriteEngine on
  
  RewriteCond %{HTTP_HOST} ^domain2.com$ [OR]
  RewriteCond %{HTTP_HOST} ^www\.domain2.com$
  RewriteRule ^([A-Za-z0-9-]+)$ http://domain2.com/url/$1 [L]
  
  Rewritecond %{HTTP_HOST} domain2.com [NC]
  RewriteCond %{REQUEST_URI} ^/$
  Rewriterule ^(.*)$ http://domain2.com/soon/ [QSA,L,R=301]
  
  RewriteCond %{REQUEST_URI} ^system.*
  RewriteRule ^(.*)$ /index.php?/$1 [L]
  
  RewriteCond %{REQUEST_URI} ^application.*
  RewriteRule ^(.*)$ /index.php?/$1 [L]
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?/$1 [L]
  </code></pre>
  
  <p>When i call my shothener <code>http://domain2.com/57b97f2</code> i'am redirect to <code>http://domain2.com/url/57b97f2</code> with a 302 redirection.</p>
  
  <p>How can i avoid this unwanted 302 redirection ?</p>
  
  <p>======= EDIT ======= :</p>
  
  <p>My controller for the <code>url()</code> function is named : <code>webadmin</code></p>
  
  <p>My routes are :</p>
  
  <pre><code>$route['default_controller'] = 'webadmin';
  $route['404_override'] = '';
  $route['translate_uri_dashes'] = FALSE;
  $route['(.+)'] = 'webadmin/$1';
  </code></pre>
  
  <p>Webadmin controller : </p>
  
  <pre><code>function url($code)
  {
      //do something
  }
  </code></pre>