We are planning to move a 1000 pages pr3 website from one domain to another using 301 redirect so we don't loose page rank and rankings in Google and other search engines. URL structure will remain same like http://www.old-domain.com/innerpage1.html http://www.old-domain.com/innerpage2.html http://www.old-domain.com/innerpage3.html will move to http://www.new-domain.com/innerpage1.html http://www.new-domain.com/innerpage2.html http://www.new-domain.com/innerpage3.html Like so on for all 1000 pages, Now can anyone suggest what code do we need to put in .htaccess file at old-domain.com so redirect works properly and we don't loose rankings of inner pages too? Also other guidelines and imp. points to remember while moving?
Try this: RewriteEngine On RewriteCond %{HTTP_HOST} ^(www\.)?old-domain.com$ RewriteRule ^(.*)$ http://www.new-domain.com/$1 [R=301,L] Code (markup): I'm not an expert at .htaccess, but I think this should work. Be sure to back up your original .htaccess before testing so you can fix it if I'm wrong. Also keep in mind that you're liable to experience some ranking fluctuations for a while when you make the change. Some people advice changing a few directories at a time, but that's beyond my experience and always seemed to me to be tricky to do well. Good luck!
ive found that no matter what, the ranking will in fact change if you do a 301, other factors like new domain age might influence...is it new or just a redirect to another domain that you have had for a while?