I Give Up
Here are more details on the issue I experience. I try to use a Summary Card with Large Image @projecklist
The validator failed to validate all the links I tested below. On the other hand, when I tweet, the card is working only with a specific url and it and MUST include ‘http://’ and ‘www’ and WITHOUT any trailing slash or other characters. For some reason it does’t work if the url is not explicitely written as follow: http://www.projecklist.oneprojct.space (no bit.y’s or any other variations)
Another issue I think is related is that the site support IL18N with 2 locales so far and the content of the meta tags used for the Twitter Card is dynamically generated to match the language of the user. I don’t understand why both http://www.projecklist.oneprojct.space/?Lang=en_CA and http://www.projecklist.oneprojct.space/?Lang=fr_CA are not working in both in the card validator or when I tweet these urls. I assumed they should both direct the bots to the french/english content and meta tags. I have tested this with open graph tags and its working fine. I do not understand enough to figure out why twitter cards behave differently.
There is no url format guidelines in your docs beside when you want to refresh the Card cache. Unfortunately, bit.ly’s don’t seem to work at all for me.
Validator Logs
- http://www.projecklist.oneprojct.space
- http://www.projecklist.oneprojct.space/
- http://www.projecklist.oneprojct.space/?lang=fr_CA
- http://www.projecklist.oneprojct.space/?lang=en_CA
ERROR: Fetching the page failed because the fetcher cannot resolve the address.
- http://bit.ly/1VaUr0S or any other bit.ly urls tested has the WARN: log redirected to their full urls.
ERROR: Fetching the page failed because the fetcher cannot resolve the address.
WARN: this card is redirected to http://www.projecklist.oneprojct.space/
Robot.txt -> dev environment:
I have tested also with Allow: and Disallow: for all user agents * and did not fix the issue. Here the current setup I have as recommended in your docs:
# robotstxt.org/
User-agent: Twitterbot
Disallow:
User-agent: *
Disallow: /
.htaccess
Here are the only mentions of deny xxxx in my current .htaccess file and should not cause trouble, I think:
<FilesMatch "(^#.*#|\.(bak|conf|dist|fla|in[ci]|log|psd|sh|sql|sw[op])|~)$">
# Apache < 2.3
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
Satisfy All
</IfModule>
# Apache ≥ 2.3
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
</FilesMatch>
In case it makes a difference, I am forcing the ‘www’ in the url with this command in .htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^projecklist.oneprojct.space$
RewriteRule ^/?$ "http\:\/\/www\.projecklist\.oneprojct\.space\/" [R=301,L]
</IfModule>
IL18N Troubleshoot Attempt
In order to get one Twitter Card image per locale, I have created an alternate index file with the required meta tags at http://www.projecklist.oneprojct.space/img/og/twcard-fr/ but both the validator and the tweets failed. (I want to do this because there some text that needs translation on the image itself)
Conclusion
Until this is resolve, I give up on twitter cards. I hope this content helps you to help me fixing this gap I experience.