Riparare WordPress quando viene cambiato il suo url
Posted on maggio 19, 2006
Filed Under mysql, php, programmazione, wordpress tips | Visited 210 Times |
Penso sia capitato a tutti i wordpress users di dover spostare un blog da una cartella ad un’altra o da un dominio ad un’altro… Spesso wordpress si arrabbia un tantino nontrovando il css, le immagini e non permettendo la modifica dell’url dalle opzioni segnalando l’errore “enable sending referrers” descritto qui - http://codex.wordpress.org/Enable_Sending_Referrers
Per correggere velocemente il problema ecco cosa ho trovato nel sito principale di wordpress - http://codex.wordpress.org/Login_Trouble -
Basta inserire sotto i require la riga:
update_option(’siteurl’, dirname(’http://’ . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) );
nel file wp-login.php
Site URL Redirecting
In certain cases your WordPress address URI may have been reset.
- Check the siteurl value in the wp-options table of your WordPress database. A guide to doing this is available here (http://www.tamba2.org.uk/wordpress/site-url/).
- Is it set as http:/?
- If it is, change site_url to the correct value.
- Open wp-login.php in a text-editor and comment or delete the following lines:
// If someone has moved WordPress let’s try to detect it
//if ( dirname(’http://’ . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != get_settings(’siteurl’) )
// update_option(’siteurl’, dirname(’http://’ . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) );
Related posts:
- PhP exploit, occhio a quell’exec! E' da un po che noto nei log degli accessi...
- Come si fa per ottenere una gallery decente su wordpress Prima di tutto una bella lettura su http://lazyest.keytwo.net/ dove possiamo...
- E da oggi blog! L’idea è che ogni user di no-net.org puo installare...
- Integrare Gallery2 in Wordpress o in siti web php based Spesso mi capitato di pensare che sarebbe stato bello poter...
Comments
Leave a Reply













