I think having the full path names of everything embedded in the postmeta and posts tables has caused me trouble. I recently renamed the folder wordpress is in - and I will soon be transferring to a new provider as well. The programs could get the full path name from $_SERVER['DOCUMENT_ROOT'] or $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) etc. Instead, old paths are embedded in tables. Will a future version of WP address this?
I have seen-used other open source pkgs which have config variables to store the values for $_SERVER['DOCUMENT_ROOT']
and for $_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']
putting these in wp-config.php would help a lot when changing hosting providers and with having a backup copy on ones own pc.
This might help a bit. In a recent release, we gained two more optional variables for the wp-config.php file:
define('WP_SITEURL', 'http://foo.com');
define(’WP_HOME’, 'http://foo.com');
These override the URLs presented in Options -> General. (source)
Very Good. Does this eliminate requiring the old/original full-length url's remain embedded in every other record of the postmeta table (and the post content records etc.)
I am about to move from an old hosting co to a new one (GoDaddy) and all those embedded full-length url's will be wrong.