title: Remove www from domain in CodeIgniter
body: <p>This is what I have in my .htaccess file and when I ran a speed test the www is showing and also shows in all URLs, please help if you know what is broken.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>RewriteEngine On
  
  RewriteCond %{HTTPS} !=off
  RewriteRule .* http://%{SERVER_NAME}%{REQUEST_URI} [R,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
  RewriteCond $1 !^(index\.php|public|images|robots\.txt|css)
  RewriteRule ^(.*)$ index.php/$1 [L]</code></pre>
  </div>
  </div>
  </p>