Hi guys, i need help on wordpress rewrite rules. i want to rewrite my wordpress url from non-www to www. but i don't know what is the code for that, can someone pls help me? I have a forum and a wordpress blog on my site. which mean all my forum files is install under the "public_html" and my wordpress is install under "public_html/yourforumname.com/testing" there a "testing" folder at the "public_html". My forum is currently using the below .htaccess rewrite code: RewriteCond %{HTTP_HOST} !^www\.yourforumname\.com RewriteRule (.*) http://www.yourforum.com/$1 [R=301,L] Code (markup): When i type yourforum.com it will auto direct me to www.yourforum.com <---- for my forum But now i have installed wordpress for my site, which is at yourforum.com/testing Can anyone tell me what are the rewrite rules code for wordpress? for redirecting non-www to www. I want my wordpress url to be www.yourforum.com/testing instead of yourforum.com/testing There a .htaccess file in my "testing" folder which is the folder i install wordpress. This is the rewrite rules code my friends helped me to put, is it correct? RewriteEngine On # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /testing/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /testing/index.php [L] </IfModule> # END WordPress Code (markup):