Problem: The client is experiencing 404 errors from links containing "
/?lang=en
" despite having a different language URL format configured in WPML, such as "
https://mysite.com/en/
" for English pages. Solution: We recommend adding a 'noindex' directive for these links directly from the Search Console to prevent them from being indexed. It's important to note that WPML does not generate these links; instead, WordPress attempts to 'guess' the post's language. Since these links are not indexed, it's unlikely that they will be accessed frequently.
If this solution does not seem relevant to your situation, please open a new support ticket with us.