Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter merzedes

    (@merzedes)

    Hi Michael,

    if you set those values in wp-config.php then a user can’t accidently change the Settings->General, WordPress and Blog address values.

    Understood. This is, nevertheless, a side issue as I haven’t asked for the effect of setting this variables in wp-config.php. Another neat effect is that it overrides values burried in the database. This makes it then particular easy to move an installation from one domain to another.

    The point is that the documentation hides the fact that both URLs must be accessible for the dear reader. This took my by some surprise. I — and other users judging this forum — can’t really see a benefit of having this “nested” relationship https://example.com vs. https://example.com/blog.

    Perhaps something to deprecate?

    Try and put something like

    define('WP_HOME',    'https://' . $_SERVER['HTTP_HOST']);
    define('WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST']);

    this in your wp_config.php file which makes your blog accessible either via https://old.example.net/ or via https://new.net/.

Viewing 2 replies - 1 through 2 (of 2 total)