Roberto Zanardo
Redirect da HTTPS a HTTP via file HTACCESS
Anche se è più frequente avere l’esigenza esattamente opposta (qui come fare da http a https), può capitare (magari perchè è scaduto un certificato e si sta attendendo il rinnovo), di dover forzare il redirect da https a hhtp. Possiamo farlo semplicemente aggiungendo queste righe di direttiva al file .htaccess: # Redirect HTTPS to HTTP … Leggi tutto
Workaround to walk function no more compatible with Walker in WordPress 5.3
With te latest releases of WordPress, after updating to WP 5.3 it’s common to receive this error on some custom themes: Warning: Declaration of _Nav_Menu::walk($elements, $max_depth) should be compatible with Walker::walk($elements, $max_depth, …$args) in… This is caused by the introduction of the spread operator, as per official WordPress release note: In WordPress 5.3, the PHP … Leggi tutto
Utilizzare e ripristinare file hosts windows 10 corrotto
Il file hosts è molto comodo in fase di test e sviluppo di siti o applicazioni delle quali, ad esempio, non è stato ancora registrato un dominio online. E’sufficiente indicare l’ip di destinazione seguito da un nome di dominio, ad esempio: 123.123.123.123 nomedidominio.com Per un motivo che non ho ancora ben compreso può capitare che … Leggi tutto