2.14.1.11. Configure WordPress to work at service address (without domain)

To check the siteoperation without a domain (or its pointing), you can use a free service address:

  1. Enable service address in site settings.
  2. At the beginning of the WordPress configuration file (right after <?php), add the following lines:
    define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST']);
    define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST']);
Content

    (10)