Home › Forum › Problemi Vari con WP › Installazione certificato SSL
-
AutorePost
-
-
3 Gennaio 2017 alle 14:41 #31231tech91Partecipante
Salve a tutti, ho installato dal pannello di controllo del mio spazio web il certificato SSL Let’s Encrypt.
1) Ho modificato l’URL del sito in Impostazioni/Generali inserendo https anziché http
2) Ho inserito questo in .htacces (ovviamente il nome del mio sito):
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yoursite.com/$1 [R,L]
</IfModule>
3) Ho inserito in wp-config.php:
define('FORCE_SSL_ADMIN', true);
Adesso la pagina di login è in HTTPS, l'home e tutte le altre pagine e articoli sono in https.
Però ci sono due problemi:
- Il pannello delle impostazioni di background di wordpress viene caricato in modo errato "Pagina non sicura"
- Tutte le immagini presenti nel sito web non vengono visualizzate.
Come posso risolvere?
Grazie mille del supporto
Bun anno a tutti voi -
3 Gennaio 2017 alle 19:58 #121160SteveAglAmministratore del forum
Di certo non basta cambiare le url che hai modificato tu, gli attachment le immagini negli articoli etc sono nel DB e poi spesso altre volte lea url del sito esi trova anche in impostazioni di plugin o altro memomirzzate in record del DB in maniera serializzata e quidni non basta cambiare la url ma cambiandone la lunghezza anche i dati correlati.
Utilizza questo utility, che installerai nel tuo spazio WP ma che non è un plugin WP, si leggerà i dati ddi connessione dal wp.config e permette di fare le ricerche e sostituzione anche sui campi serializzati, oltre a permettere di vedere con la modalità dryrun quali e quante righe verranno corrette. Ovviamente prima sempre un backep
http://interconnectit.com/124/search-and-replace-for-wordpress-databases/
-
4 Gennaio 2017 alle 12:35 #121161tech91Partecipante
Ok Grazie della risposta. Dopo che effettuo il cambiamento degli url del database, mi chiedevo se:
– Posso modificare il file robots.txt ?
– Posso modificare gli URL nel file sitemaps ?
– Si può modificare l’URL di Google Webmaster Tool o ne devo creare uno nuovo ?
Grazie del supporto
Saluti
-
4 Gennaio 2017 alle 15:55 #121162SteveAglAmministratore del forum
se i file nons ono generati in automatico dai plugin (la sitemap penso di si quindi si rigenererà ovvio.. qua un elenco dettagliato di cose da fare che copre anche cose NON WP, e considera anche casi come cache e CDN
https://woorkup.com/how-to-migrate-from-http-to-https-complete-tutorial/
-
4 Gennaio 2017 alle 19:00 #121163tech91Partecipante
Ho eseguito Search-Replace-DB-master ha effettuato il replace ma compaiono queste due indicazioni:
The table “ip2nation” has no primary key. Changes will have to be made manually.
The table “tabcitonlydl_poststimestamp” has no primary key. Changes will have to be made manually.
Ho scaricato tutti i file del mio sito web e ho cercato se c’erano link del mio sito in http:// alcuni nella cartella cache ma ho rinominato la cartella dallo spazio web e in automatico ne ha generata una nuova pulita.
Quindi tutte le pagine sono in https ma non riesco a visualizzare le immagini del sito e neanche le thumbnail dei post. (se clicco su una immagine per visualizzare il link questo è in https)
NOTA: anche la pagina di login e la pagina del pannello background di wordpress sono in https
Quale potrebbe essere il problema?
Grazie del supporto
-
6 Gennaio 2017 alle 13:05 #121164SteveAglAmministratore del forum
le imamgini danno 404 o cosa ?
-
6 Gennaio 2017 alle 13:18 #121166tech91Partecipante
Grazie della risposta, Tutte le thumbnail degli articoli non si vedono e neanche l’immangine presente all’inizio di ogni l’articolo, una volta aperto. Mentre nel pannello admin di WordPress alcune icone di alcuni plugin non si vedono però quelle di WordPress si. Nella parte relativa ai temi non si vedono le thumbnail dei temi che ho caricato.
PS La directory cache l’ho eliminata e WordPress l’ha ricreata ovviamente.
Se clicco sopra le immagini o thumbnail dei post vedo che gli URL sono in Https.
Grazie ancora del supporto
-
6 Gennaio 2017 alle 17:38 #121168SteveAglAmministratore del forum
un link ad una pagina.. visto che non si capisce se le url sono giuste e danno 404 o cosa. A me la semplice modifica delle url nel DB e azzeramento della cache (non dovresti operare sulle dir avrai un pannello in WP, ma non dici che plugin usi.. anzi non dici quasi nulla delle info richieste sempre e comunque, hmi ha fatto trasformare un sito in https in meno di dieci minuti.. ci ho messo di più a sisemare uan cosa di chace PHP7 con nginx. Io suggerirei di ripristinare il backup del db e dei file (che spero tu abbia fatto) prima delle modifiche e operare le modifiche secondo la guida che ti ho indicato ed usando il programmaindicato.
-
6 Gennaio 2017 alle 22:19 #121170tech91Partecipante
Ecco qui un link di un articolo: https://goo.gl/qWsNDv
Grazie del supporto
-
7 Gennaio 2017 alle 7:13 #121171SteveAglAmministratore del forum
Hai continuato a dire che le url delle immagini sono in https e quindi pensavo avessi controllato la loro url, invece, che ne so l’immagine dell’header ha:
https://citbagheria.it//wp-content/uploads/2016/10/cropped-til-citbagheria.jpg
quel doppio slash dopo il nome dominio da problmi se copi inolli non hai l’ikmmagine, messa correttamente
https://citbagheria.it/wp-content/uploads/2016/10/cropped-til-citbagheria.jpg
SI vede perfettamente, quindi nel DB hai fatto un cerca sostituisci errato, rifallo col programma indicato avrai il dominio con lo slash finale o doppio addirittura, il problema è banalmente tutto li.
-
8 Gennaio 2017 alle 8:46 #121184tech91Partecipante
Buongiorno, ancora grazie per il supporto. Tutte le URL sono adesso modificate in maniera corretta. Il problema delle immagini rimane. Noto un elemento alquanto strano in pratica i link delle immagini fanno un redirect al link dei feed https://citbagheria.it/feed/
Ho provato a cambiare il nome alla cartella dei plugin cosଠda disattivarli tutti ma nulla da fare.
Qualche altra idea?
Grazie ancora.
Saluti
Buona domenica
-
8 Gennaio 2017 alle 9:15 #121185SteveAglAmministratore del forum
òa cache direi… non hai fornito nessuna delle info richieste ne fatto le prove, se il problema persiste ripristini il backup db e files prima delle modifiche e ripeti la provedura indicata cambiando le url etc coe dal primo dei link che ti ho dato. Potrebbero essere pure dei permessi sulle directory, difficile dire. A me non è mai capitato nulla di tutto questo ama ogni operazione è stata fatta e verificata prima di passare alla successiva, avere un plugin di cahce non è buona cosa azzerala o meglio disabilitalo e poi vedi.
-
8 Gennaio 2017 alle 14:24 #121193tech91Partecipante
Già ho controllato i permessi delle immagini. Ho notato che qualche immagine si vede ed ha estensione .jpeg mentre tutte quelle che hanno estensione .jpg non si vedono. Ho provato a caricare una immagine in .jpeg e caricarla nell’articolo, questa si vede perfettamente.
Avevo pensato di fare una modifica delle estensioni di tutte le immagini da .jpg a .jpeg.
Però dovrei sostituire tutte le URL path.
Che ne pensi ?
Comunque al di là di tutto ciò grazie ai problemi si scoprono sempre nuove cose e si impara.
Grazie
Un saluto
-
8 Gennaio 2017 alle 15:28 #121194tech91Partecipante
Già ho controllato i permessi delle immagini. Ho notato che qualche immagine si vede ed ha estensione .jpeg mentre tutte quelle che hanno estensione .jpg non si vedono. Ho provato a caricare una immagine in .jpeg e caricarla nell’articolo, questa si vede perfettamente.
Avevo pensato di fare una modifica delle estensioni di tutte le immagini da .jpg a .jpeg.
Però dovrei sostituire tutte le URL path.
Che ne pensi ?
Comunque al di là di tutto ciò grazie ai problemi si scoprono sempre nuove cose e si impara.
Grazie
Un saluto
Ho effettuato una prova.
Ho convertito le immagini di un mese di una directory (es. 12 dicembre 2016) da .jpg a .jpeg.
Ho modificato l’estensione dell’immagine cliccando su ispeziona l’elemento con google chrome, fatto ciò l’immagine ancora non si visualizzava. Allora ho notato che alla fine della riga appare style=”display: none; inserendo al posto di none -> block appare l’immagine. (NOTA: stessa operazione, cioè inserire block, con l’immagine in .jpg non si visualizza)
Manca poco ormai e risolvo. Grazie del supporto.
Aspetto un tuo parere
Saluti
-
10 Aprile 2017 alle 18:39 #121532NedLudPartecipante
Ciao tech91, forse arrivo con un pochino di ritardo… ma io oggi ho lo stesso problema. Ho visto il tuo sito e sembra che tu abbia risolto il problema. Saresti cosଠgentile da dirmi come hai fatto? Grazie
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.