Redirect A site to B site with 5 sec delay

Hi

I want to redirect A site to B site with 5 sec delay . I mean once accessing to A site a message will show like " we’ve moved this site to B site " and after 5 seconds it will redirect to B site.

all content url will be same only domain will change

i mean

if i access to Asite it will redirect to Bsite and Asite/post-url redirect to Bsite/post-url

i searched on google but did not find the correct way . it redirects to Asite to Bsite and Asite/post-url to Bsite not to Bsite/post-url

so please provide steps to do it correct way .

The best approach for redirecting A site to B site while preserving the original URLs (Asite/post-url to Bsite/post-url) is to implement traditional 301 redirects without a delay. This ensures that the link benefit is transferred correctly and avoids potential harm to SEO performance.

Instead of delaying the redirect, you can display a message on the B site if the referring site is the old A site. This message could announce the move, such as “We are now B name.”

Using server-side redirects (like 301) is the recommended approach for SEO purposes. It offers instant redirection, passing link juice efficiently, and aligns with SEO best practices.