my domain name is www.johnqin.com if visitors typed johnqin.com/about.html I want to change it to www.johqin.com/about.html using mod rewrite. I just want to make sure it starts with 'www.' how to write this Rule, and should I place it at the beginning of the .htaccess file or the end of .htaccess file.
Place this into your .htaccess file. Be sure the first two items appear at the top. Options +FollowSymLinks RewriteEngine On # Force www. RewriteCond %{HTTP_HOST} ^(johnqin\.com)$ [NC] RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]