title: Restrict the url_suffix in codeigniter
body: <p>I am using codeigniter 2.1.4 and I have set <code>$config['url_suffix'] = ".html";</code></p>
  
  <p>It's working fine with out any trouble. But I found out that if I use <code>redirect();</code> function will always add <code>url_suffix</code> on the landing page url. eg: <strong>site.com/login/success.html</strong>.</p>
  
  <p>My question is there anyway to exclude the <code>url_suffix</code> while using the <code>redirect()</code> function? or is there anyway to add .html without setting <code>url_suffix</code> in codeigniter, may be some hack in .htaccess??</p>
  
  <p>I tried to add </p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_URI} !\.[a-zA-Z0-9]{3,4}
  RewriteCond %{REQUEST_URI} !/$
  RewriteRule ^(.*)$ $1.html
  </code></pre>
  
  <p>in the project htaccess file, but once i unset the url_suffix variable the framework throws 404 error. Any work around?</p>
  
  <p>Thanks :)</p>