RewriteCond %{HTTP_HOST} ^phcorner.net[nc] RewriteRule ^(.*)$ http://www.phcorner.net/$1 [r=301,nc] That one didn't work. Any tips?
It is because in redirect rules the content before & after . (dot) should always be differentiated with a \ (slash)