Redirect twitter card to another Url


#1

Is there a way to Redirect twitter card to another Url. Ie, If I share abc.com and when I click on its twitter card it need to redirect to xyz.com


#2

Not inside the card, no. If you happened to be the owner of abc.com then you could implement a 301 redirect on the server side, of course. If not, then I can only really read this as some kind of link hijack, and that’s certainly not something we would want to enable in the Twitter developer platform!


#3

It is not like that. Both sites are owned by my self. What is my requirement is that I have a site Called abc.com and which contains a twitter share link.When I click on the link Iam calling a sub domain say share.abc.com

https://twitter.com/intent/tweet?url=share.abc.com

share.abc.com contains the meta tags for the abc.com url.

So when I share the twitter card and click on the card it should redirect to abc.com instead of share url.
Iam not able to add metatags in abc thats why iam sharing corresponding share Url. But I can add it in share Url.
Is this possible ?


#4

If you create 301 redirects for all links to share.abc to abc on your server then this should work.


#5

Is there any way to change twitter card site name ? Capture


#6

Try the twitter:site tag.

https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/markup.html


closed #7

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.