Hi guys i have a site with around 1000 pages if I do a 301 redirect only for home page (site[dot].com) by leaving unchanged all other sub-pages google don't deindex site right? which code should I use to do the 301 redirect only homepage? Thanks
Of course Google won't deindex it. Use something like: RewriteRule ^/$ http://www.newdomain.com/ [R=301,L] Code (markup): or RewriteRule ^/$ http://www.newdomain.com/newpage.html [R=301,L] Code (markup):
ok thanks and then google doesn't de-index Homepage even if there is the redirect 301, because that other internal pages don't have redirect....right? one last thing ... If I use this code in htacess file: RewriteRule ^/$ http://www.newdomain.com/ [R=301,L] Code (markup): redirects me only the home page or the entire site? I want to redirect only the home page. Thanks for reply
You are welcome. Google will index only the new homepage, because it will be 301-redirected, which means that the old homepage is permanently moved to the new one's address. The other already indexed pages will remain indexed. And yes, this code redirects only the home page.
hello try using 302 redirect "Moved Temporarily" , i never try but make more sense to "permanently moved" if like old site keep indexed http://en.wikipedia.org/wiki/HTTP_302 Best
Good offer but it won't help either in what he is trying to accomplish. The 302 redirect, as you said, is a "temporarily moved", so it is designed not to be indexed if the crawler sees it. It interprets it as that the page is under some sort of maintenance "temporarily" and that the page will be back to normal state later, so it won't be changed in the index.
My problem that the 302 redirect does not pass Page Rank. I want to capture the Page Rank of the site which I make a redirect...
You can't do that without getting the old page deindexed. That's the whole point of the 301 redirect - to transfer the PR to the new site when you change the domain. If you want you can add a few links from the old homepage so this way they will give some PR to the new domain.