I have two websites https://abc1.com https://example1.com.
Example1 is an ecommerce site. Let's say in the website a product link is https://example1.com/products/123456.html
Now I'm sharing the product and share link is https://abc1.com/products/123456.html
When user is clicking the link,it should redirect to https://example1.com/products/123456.html.
For a static page manually it is possible for each link.but I want it dynamically. You can understand in an ecommerce site there will be tons of products, constantly updating. So that whatever the product id will be placed with abc.com dynamically it should redirect to example1.com.
I have to redirect via js.like https://abc1.com/probucts/xyz123.html --> to a page where js,text/picture will be -->[redirection] --> https://example1.com/products/xyz123.html
If anybody can help.