title: Redirection from non www to www for category page is not working
body: <p>I am using below code for removal of index.php and redirect non-www to www for my website. It is working perfectly for home page, but when I go for category pages, index.php is working fine but inner page redirection from non-www to www is not working. This is a wordpress website.</p>
  
  <pre><code># BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  # END WordPress
  
  RewriteEngine On
  RewriteCond %{HTTP_HOST} !^www\.
  RewriteRule ^(.*)$ http://www.%{HTTP_HOST}$1 [R=301,L]
  </code></pre>
  
  <p>any help would be appreciated thanks</p>