• 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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter fev

    (@fev)

    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', 'https://foo.com');
    define(’WP_HOME’, 'https://foo.com');

    These override the URLs presented in Options -> General. (source)

    Thread Starter fev

    (@fev)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘full path names embedded adinfinitum’ is closed to new replies.