[wp-hackers] WP_SITEURL and db update
peter.westwood at ftwr.co.uk
Tue Jul 29 18:47:03 GMT 2008
> On Tue, Jul 29, 2008 at 8:05 AM, Stefano Aglietti <steagl4ml at gmail.com> wrote:
>> On Tue, 29 Jul 2008 05:20:08 -0700, Viper007Bond
>> <viper at viper007bond.com> wrote:
>>> What does it matter what the value in the database is? You shouldn't be
>>> manually querying, so it won't affect you.
>> Would be usefull for end users that mess up with paths and url in the
>> admin panel, this solve the problem but if it force tha value would be
>> an easy alternative that editing DB using phpmyadmin.
> I've been telling people to add code to their theme's functions.php
> file instead of manually modifying the DB:
> Stick that in there, load the page a couple times, remove it again.
> Database fixed.
Or you can just use the RELOCATE define.
Add define('RELOCATE',true); to wp-config.php and go to wp-login.php and
it will update siteurl for you automatically to the url you access it with.
http://blog.ftwr.co.uk | http://westi.wordpress.com
C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5
More information about the wp-hackers