Forum Moderators: open
I believe that there are other members who have had problems like yours. Hopefully they will see this thread and tell about their experiences.
point the domains to the same IP (same DNS Name Server) and the same folder and Google shold keep all the backlinks the same. Keep the old domain as is!
------------------------------------
Can someone tell me how to redirect the files for Google, if you replace the name of the actal file? (ie: abc.html is now abcdefg.html) and all links are changes from other pages. I jus do not want to lose the PR that the older named page has by removing it totally from the server.
thanks
optimist:
I've already done that. Both domain names are now pointing to the same IP address (which is a brand new server btw), but I'm keeping the old hosting for a couple more months because I've read somewhere that Google takes some time to refresh its DNS cache, drop the old IP address and start using the new one. Then, with a couple of ReWriteCond and ReWriteRule I'm sending a 301 status for the traffic coming from the old domain name. Actually I'm also using these 301's to "normalize" the domain (i.e. adding the "www." when it's missing)
Thank you guys for your replies! I stay tuned...
Sorry, I didn't see your question. If you have web pages indexed by Google which you want to rename but you don't want to lose traffic coming from those pages you have to use a 301 (permanent) redirect. Assuming you have access to your .htaccess file, you have to add lines like the following:
RewriteEngine on RewriteRule /old-page-1\.htm /new-page-1\.htm [R=301] RewriteRule /old-page-2\.htm /new-page-2\.htm [R=301] RewriteRule /old-page-3\.htm /new-page-3\.htm [R=301] ...etc... (one RewriteRule line for each page that you have renamed)
The 301 you see in there means the redirect is PERMANENT, as oppossed to 302 which means TEMPORARY. Even though they both work the same for the user, they have different meanings for spiders. Basically with a 301 redirect you're telling the SE "Hey, this web page is somewhere else now, so go there and please use the new address from now on".
You can leave those line forever if you want to, but theorically you can remove them once you know all SEs have indexed the new URL.
On a side note you can use this technique not only to redirect traffic to the same site (your case) but you can use it to redirect traffic to another website as well, by using an absolute URL.
Note: Even though I know the code above works fine because I've been using it and checking its response using the Server Header Checker, I cannot tell you if this is the best possible method or syntax, since I'm not a .htaccess pro. Probably there's a better/neater way.
And if you don't have access to your .htaccess file you can try with meta tags, they should work just fine as well.