What happens to old links after a primary domain change?

Topic summary

A user is concerned about what happens to old product links after changing their store’s primary domain from www.A.in to www.A.com.

Main Question:
When customers click on previously shared product links (e.g., www.A.in/products/tshirt1), will they be automatically redirected to the new domain (www.A.com/products/tshirt1)?

Follow-up Concern:
The user asks how to prevent automatic redirects and instead send customers to the homepage (www.A.com) whenever they click any old product links containing the previous domain URL.

Status:
The discussion appears to reference a reply between the two posts, but the specific solution or answer is not visible in the provided text. The question about customizing redirect behavior remains the focus.

Summarized with AI on November 22. AI used: claude-sonnet-4-5-20250929.

I am giving an example for my concern. Please assist me on that.

Let’s say I sent my friend a product link of our store. The link is www.A.in/products/tshirt1 few days ago, but we suddenly changed our primary domain to www.A.com (and made www.A.in our secondary domain), so if my friend clicks on www.A.in/products/tshirt1 will he be directed to www.A.com/products/tshirt1 or will he be directed to www.A.com ?

Hi, first of all, thank you for your reply. That clears up a lot. But what if I don’t want that to happen? What if I want my customers to redirect to my home page only (www.A.com) whenever they click on any of our product links with our previous domain URL in it (means whenever it has .in within the product link). What should I do if I want that to happen?