hi , recently I changed my website address from http://symbiantalk.net to http://www.mobilephonetalk.com . Google start to index from new domain but old domain index site not changing to http://mobilephonetalk.com . please help me what should I write in htaccess for redirect old link to new domain .
use a 301 redirect
i am using this is it ok
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mobilephonetalk.com [NC]
RewriteRule ^(.*)$ http://www.mobilephonetalk.com/$1 [L,R=301]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^symbiantalk.net [NC]
RewriteRule ^(.*)$ http://www.mobilephonetalk.com/$1 [L,R=301]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.symbiantalk.net [NC]
RewriteRule ^(.*)$ http://www.mobilephonetalk.com/$1 [L,R=301]
The code from the .htacess looks fine too me. You could also use 2 rewrite engine instead of 3. This can be easly done from your cpanel.
thanks for info I will use 2 now