By default, the
robots.txt file contains the following entry:
User-agent: * # ... Disallow: /u
This configuration blocks the image for Twitter cards. Checking the card of various forums on Twitter’s validator does not display the logo and shows the following warning:
The image URL forum.[…].org/uploads/[…].png specified by the ‘twitter:image’ metatag may be restricted by the site’s robots.txt file, which will prevent Twitter from fetching it.
The problem is that the path
/uploads also starts with a
u and is therefore matched by the
I know that the
robots.txt file can be overwritten but I think it would be good to change the default. Unfortunately, I don’t understand the code well enough to create a pull request.
When overwriting, keep in mind that Twitter checks the
robots.txt file less often than the actual html of the page, so it takes a few hours to get picked up.