title: www and non www resolution issues in my htaccess file
body: <p>I have web site that I want to resolve the www and non www issues. I tried to using this below code from the <code>.htaccess</code> file. But no result. </p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{HTTPS} off [OR]
  
  RewriteCond %{HTTP_HOST} !^www\. [NC]
  RewriteRule ^ http://www.w15.lk%{REQUEST_URI} [R=301,L,NE]
  
  # Remove Trailing Slashes...
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{THE_REQUEST} \s(.+?)/+[?\s]
  RewriteRule ^(.+?)/$ /$1 [R=301,L,NE]
  
  # Handle Front Controller...
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^ index.php [L]
  </code></pre>