Redirect breaks twitter card

Hello, I have a site at and I redirect it into a custom domain However, when I try to put the custom domain into the Twitter Card validator, it cannot find the Open Graph and Twitter meta-tags. When I put in the default subdomain, however, it can show my twitter card properly.

I also tried to use the twitter bot user agent manually

curl -A 'Twitterbot' -o file.html

and I find that all the Twitter and Open Graph meta tags are missing. While

curl -A 'Twitterbot' -o file.html

work as expected.

Does anyone have idea on how to fix this issue?

I solved this problem.

Hey @LesleyLai,
Could you share how you have fixed this issue?