This is my wordpress Default .htaccess.. # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress So Here Where Should I place the script of these lines Options +FollowSymlinks RewriteEngine on rewritecond %{http_host} ^domain.com [nc] rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc] I tried many ways but i failed So Can any one tell me the rite way, How to redirect from http://domain.com to http://www.doamin.com
If you still find problem, just use the wordpress redirection plugin which has got a lot more features in addition to this. .. or use any canonical wordpress plugins .. many of the SEO plugins also come enabled with canonical url options .. and hope you have changed the default url to www in settings in dashboard.