Home › Forum › Problemi Vari con WP › Problema con link da google – pagina 404
-
AutorePost
-
-
28 Ottobre 2015 alle 12:17 #30252joppy80Partecipante
Ciao ragazzi, ho un problema serio, da qualche giorno senza apparentemente aver modificato nulla, parecchi miei link di google non vanno più e mi rimandano ad un pagina non trovata 404. Ho notato che l’url che mi da google è ad esempio questa: http://www.coplanet.it/32666/news/microsoft/one-piece-unlimited-world-red-disponibile-guida-trofei.html mentre quella corretta passando direttamente dal sito è questa: http://www.coplanet.it/one-piece-unlimited-world-red-disponibile-guida-trofei
Sapete come posso risolvere? ho provato a riaggiornare i permalink ma niente, non cambia nulla
Grazie infinite come sempre
-
28 Ottobre 2015 alle 13:12 #119132TittiModeratore
Ometti di dire che prima forse avevi una struttura permalink /category/postname.html, come risulta da uno di quegli URL e dal fatto che news e microsoft mi pare siano tue categorie, e ora invece hai /postname/, quindi se quegli URL sono esistiti e ora non più è normale avere errori 404 se non hai effettuato un corretto redirect.
Usa gli strumenti per webmaster di Google per vedere da dove arrivano e correggi dove puoi a mano (o se sono tanti con un plugin) e fai un redirect 301.
-
28 Ottobre 2015 alle 13:15 #119133joppy80Partecipante
Grazie per la reply e scusa l’ignoranza Ho omesso di dirlo eprchè ripeto, mi pare di non aver modificato nulla ma evidentemente non è cosà¬. Ora sempre con ignoranza ti chiedo quale pulgin possa far al caso mio, perchè i link sono tanti o forse troppi purtroppo e non ho idea di come possa fare un redirect 301.
Grazie mille per la cortesia e a presto
-
28 Ottobre 2015 alle 13:22 #119135TittiModeratore
Se hai cambiato struttura devi effettuare un redirect 301 nell’.htaccess in base a com’era la struttura prima e com’è adesso, cosa che ovviamente noi non possiamo sapere se non lo dici tu.
Se Google ti mostra dove sono quegli URL e sono nel tuo sito puoi usare un plugin di search and replace. Se sono esterni al tuo sito devi appunto fare un redirect.
Se la causa esiste tuttora ed è un plugin, devi indagare su quale plugin.
-
28 Ottobre 2015 alle 13:29 #119137joppy80Partecipante
Grazie ancora. E rimettere tutto come era prima? mi speigo, ora sono impostati i permalink come /postname/ e basta. Prima, secondo il link che proviene da google erano impostati cosà¬: 53456/news/microsoft/nomearticolo.html
dove
53456 penso sia il numero di articolo
news è una categoria
microsoft è una sottocategoria
nomearticolo.html è il titolo del post
Che struttura personalizzata di permalink dovrei mettere per riottenere quello?
Grazie
-
28 Ottobre 2015 alle 14:46 #119140TittiModeratore
WP non prevede una struttura permalink, anche personalizzata, con la sotto-categoria.
Se erano impostati cosଠcome dici (il tuo “penso” pone dei dubbi) la struttura era sicuramente personalizzata e corrisponde letteralmente a /%post_id%/%category%/%postname%.html alla fine rendendo anche la sotto-categoria SE negli articoli è selezionata solo la sotto-categoria perché è in quel caso che WP aggiunge nell’URL categoria e sotto-categoria, e lo fa in quell’ordine. Rimane che quella struttura, anche fosse quella giusta, è brutta.
Se la struttura era quella, il redirect a postname potrebbe essere:
RedirectMatch 301 ^/(d+)/([^/]+)/([^/]+).html$ http://www.coplanet.it/$3
ma sinceramente non so se funziona in quegli URL che dovessero avere anche la sotto-categoria.
Devi decidere se val comunque la pena usare la nuova struttura – dato che “postname” è esteticamente la migliore – e fare il singolo redirect mano a mano che capitano se quello là non funziona, nell’.htaccess o con un plugin di redirect.
Per reindirizzare nell’.htaccess le singole pagine devi mettere, ad es.:
Redirect 301 /32666/news/microsoft/one-piece-unlimited-world-red-disponibile-guida-trofei.html http://www.coplanet.it/one-piece-unlimited-world-red-disponibile-guida-trofei/
Ripeto è importante sapere se quegli errori o alcuni di quelli sono inseriti da te (backlink) e allora li correggi e non c’è bisogno di redirect, oppure se provengono da fuori e sono tanti.
-
28 Ottobre 2015 alle 15:29 #119141joppy80Partecipante
Grandissimo, sei un mostro, funziona perfettamente con quel permalink personalizzato. A sto punto sicuramente era cosଠe non so per quale motivo dal 26 ottobre sera risulta cambiato. Quindi non mi consigli questo permalink personalizzato da quanto ho capito. Ma se cambio i permalink poi non dovrebbe aggiornarsi da solo tutti i link?
Grazie mille
-
28 Ottobre 2015 alle 17:52 #119142TittiModeratore
Beh gli URL da soli non cambiano quindi devi indagare, anche a livello di plugin.
Diciamo che quello non è esattamente il permalink più bello del mondo, e se tu fossi all’inizio ti direi di cambiarlo senz’altro. Se è un sito ben avviato e con molte pagine il discorso cambia, per un po’ potresti avere errori (anche se in teoria con il redirect non dovrebbe succedere) e a perdita di indicizzazione.
Se cambi struttura WP aggiorna sicuramente tutti gli URL dal punto di vista dinamico (es.: clicchi sul menu, e si apre la pagina giusta con il nuovo permalink…), ma non può fare nulla per quelli “fisicamente” presenti da qualche parte con la vecchia struttura (es.: dei siti ti hanno linkato degli URL con la vecchia struttura…), per quello occorre il redirect.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.