Score:0

redirect to different domain name without breaking the embeds

in flag

Is there a possibility to redirect the links from 1.xx.com/1.jpg to 2.xx.com/1.jpg in NGINX without breaking the embeds?

I understand, a normal rewrite rule can make it happens. When some users click on the link they will be taken to the redirected URL. But the problem is what happens to the embeds.

If some websites have embedded the image using its old URL and if someone browses that webpage, do the image load or it will appear broken.

It will be helpful if a proper rewrite that works for embed can be provided.

vn flag
Have you tried? Should work fine, unless there are CORS issues or hotlink prevention in place. If you control both 1/2, you should be fine.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.