Salta la navigazione

Questo thread è stato risolto. Ecco una descrizione del problema e della soluzione.

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.

Questo è il forum di assistenza tecnica di WPML, il plug-in multilingue di WordPress.

La sua lettura è permessa a tutti, ma la pubblicazione è riservata esclusivamente ai clienti di WPML. Il team di WPML risponde sul forum 6 giorni su 7, 22 ore su 24.

Nessun supporter è disponibile a lavorare oggi sul forum Italian. Sentitevi liberi di creare ticket e li gestiremo il prima possibile quando saremo online. Grazie per la comprensione.

Etichettato: 

Questo ticket contiene 1 risposta, ha 2 voci.

Ultimo aggiornamento da Laura 6 mesi fa.

Assistito da: Laura.

Autore Messaggi
Ottobre 30, 2023 a 12:54 pm #14691429

tairaC

Hi,
I am encountering via Search console many links with "/?lang=en". The plug in is configured for another type of format since the creation of the site i.e. link nascosto - Italian, link nascosto - English.
The above links often create 404 error even if not indexed, and I end up with all these problematic links. How can I remove them and more importantly how can I prevent more of them from being created?

Ex: link nascosto

LINK: link nascosto
link nascosto

Ottobre 30, 2023 a 2:56 pm #14693031

Laura
Supporter

Lingue: Inglese (English ) Italiano (Italiano )

Fuso orario: Europe/Rome (GMT+02:00)

Salve,

grazie per averci contattato.

Non è WPML a "creare" quei link ma WordPress, che cerca di "indovinare" la lingua del post.

Dal momento che non sono indicizzati, è improbabile che qualcuno vi acceda, in ogni caso ti suggerisco di aggiungere un noindex direttamente dalla console.

Novembre 2, 2023 a 5:44 pm #14720287

tairaC

Grazie per la delucidazione. 🙂

tairaC ha confermato che il problema è stato risolto su 2023-11-02 17:44:02.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.