WordPress.org

Support

Support » Localhost Installs » Subdomains on locally hosted multisite?

Subdomains on locally hosted multisite?

  • cryssybee02
    Member

    @cryssybee02

    I have multi-site set up on a locally hosted WordPress installation using IIS.

    To get it to work on my local setup, I changed my local site to a fake domain (“localhost.com:80”), and edited my hosts file like so:

    127.0.0.1 localhost.com

    Now I can create sub-domains, but I can’t view them. Going to the new site or trying to access the its dashboard gives me a 404 error.

    I tried updating my hosts file with my sub-domains like so:

    127.0.0.1 localhost.com
    127.0.0.1 sub1.localhost.com
    127.0.0.1 sub2.localhost.com

    But that just gives me the IIS placeholder page instead.

    I’m at a loss as to how I can get this sub-domain thing to work. Switching to sub-folders would be an absolute last resort for me.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Subdomains on locally hosted multisite?’ is closed to new replies.