• I created a local WordPress Multisite installation using MAMP, which I’ve been accessing via http://localhost/. After 2 weeks of development work, I found out I need to add a blog subdomain (http://blog.localhost.com), which WordPress Settings Requirements prevent me from doing unless I edit my hosts file.

    So I made this change in wp-config.php:

    define('SUBDOMAIN_INSTALL', true);
    And edited my hosts file like below:

    127.0.0.1       localhost.com
    127.0.0.1       blog.localhost.com

    But it’s still not working. I’ve tried stopping/starting MAMP, but this didn’t help. What I’m wondering is this: is it too late to make this kind of change, since my site was originally configured as http://localhost/ and not http://localhost.com? If yes, will I need to start from scratch? If I can salvage my existing installation, what additional steps do I take?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Move local build from localhost to localhost.com to support subdomains’ is closed to new replies.