Home › Forum › Problemi Vari con WP › Migrazione da sottocartella a root
-
AutorePost
-
-
29 Novembre 2014 alle 9:49 #28493albros88Partecipante
Salve,
mi è capitato che, spostando un sito in WordPress da una sottocartella alla root principale, parte dei file di immagine (non tutti) mantengono l’url della sottocartella.
Per spiegarmi meglio, nel passaggio:
da www . sitoesempio . it / prova
a www . sitoesempio . it
diverse immagini restano con l’url www . sitoesempio . / prova / immagine . jpg
I passaggi che ho effettuato per la migrazione sono:
a) disattivazione di tutti i plugin e impostazione del tema standard;
b) nel pannello di amministrazione di wp, modifica di siteurl e home;
c) spostamento di tutti i file da sottocartella a root
d) ricaricamento permalink
Non riesco a spiegarmi il perché e soprattutto vorrei evitarmi il lavoraccio di andare a correggere tutte le url delle immagini dopo il trasferimento.
Qualcuno può aiutarmi?
Forse (scusate, non sono un esperto di mysql…) esiste una query che permette di correggere le url in una volta sola…?
Grazie.
Al
-
29 Novembre 2014 alle 10:38 #114892elmaniseroPartecipante
Procedura sbagliata.
Questa è la corretta.
Altrimenti visto che sei a questo punto
If you do a search and replace on your entire database to change the URLs, you can cause issues with data serialization, due to the fact that some themes and widgets store values with the length of your URL marked. When this changes, things break. To avoid that serialization issue, you have two options:
Only perform a search and replace on the wp_posts table.
Use the Search and Replace for WordPress Databases Script to safely change all instances. (If you are a developer, use this option. It is a one step process as opposed to the 15-step procedure below)
Optionally, you can also use an online tool (in case you don’t want to bother with uploading scripts to your server) Online WordPress Serialized PHP Search and Replace which allows for replacing an old domain or URL with a new one while fixing the serialized data at the same time.
-
29 Novembre 2014 alle 10:40 #114893albros88Partecipante
Grazie mille!
-
29 Novembre 2014 alle 11:03 #114897albros88Partecipante
Letto la guida di codex, tutto chiaro tranne un aspetto: i file, di fatto, rimangono nella sottocartella. Questo non può influire negativamente lato SEO, secondo la tua esperienza?
Grazie.
-
29 Novembre 2014 alle 11:05 #114898elmaniseroPartecipante
No, altrimenti fai quello che ho scritto di seguito nel post precedente.
-
29 Novembre 2014 alle 11:14 #114899albros88Partecipante
Ottimo, grazie.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.