Okay, so I've just redesigned my clients website and updated the sitemap. That means the sitemap structure is not the same. The new site is also hosted on a new server with a new domain name. To keep all the links and SEO intact i'll have to do 301 redirects. However i'm not sure how exactly to pull this off.
Domain A *Server A*
Domain B *Server B*
Domain A is the original domain and has to be forwarded to domain B, since domain B is the new primary domain. Just a simple forward to prevent duplicate content.
Domain B's content is hosted on server B, while the old content of domain A was hosted on server A.
On which server do I make the 301 redirects in the .htaccess file and how exactly do I pull it off, so that links from Domain A properly redirect to Domain B?
Is simple redirects enough or do I have to rewrite also? And again on which server do I make these changes?
I'm a bit confused because if I do a simple redirect on the new server b, how can the server recognize urls from the old server/domain? (See example below).
redirect 301 /old/gallery http://www.newdomain.dk/gallery
It doesn't make sense to me that server B could recognize /old/gallery path unless I tell it somehow. But how? :)
Thanks in advanced. Best regards Jeppe C