Hi All, I did 301 redirection for my domain.com to www(dot)domain(dot)com by .htaccess file. But problem is it's not redirecting my domain in www, i checked coding of .htaccess file is correct and i put it in correct root in server. I want to know.... What is the problem in this redirection?? can anybody suggest if he/she face this problem?? What is the Apache Mode in hosting??? I use this code in my .htaccess file I will be thankful to you all for your suggestion. Thanks & Regards, Alana
try this link: http://www.searchenginepromotionhelp.com/m/articles/search-engine-problems/domain-redirection.php
You didn't escape properly. Use: RewriteCond %{HTTP_HOST} !^www\.domain\.com [NC] RewriteCond %{HTTP_HOST} !^$ RewriteRule ^(.*) http://www.domain.com/$1 [L,R=301]
Thanks for your replies friends! I use everything as u told me but it's not working yet. Can u give me any suggestion about this?? Alana