Support » Networking WordPress » Multisite subdirectory domain mapping on localhost

  • Resolved dhyanakendra

    (@dhyanakendra)


    Hi
    My current multisite project has been created with a sub-directory structure on localhost using XAMPP. The Multisite has 1 Parent site and 4 child sites in the following structure:

    localhost/KYNMultisite – Parent Site
    localhost/KYNMultisite/Hamburg
    localhost/KYNMultisite/Stolzenau
    localhost/KYNMultisite/Pfullendorf-Uberlingen
    localhost/KYNMultisite/Rotterdam

    How do I proceed with domain mapping on localhost to check out things and then subsequently migrate over to the live server. Need your assistance in this respect as this happens to be my first multisite project.

    Thanks in advance.
    BM

Viewing 3 replies - 1 through 3 (of 3 total)
  • Normally you would have your Networked site, the parent, in the root directory.

    You then point your main domain and any subsequent domains at the root. Get that first one to work and the rest follow along nicely.

    You’ve hinted around that you’ve done this before so treat the Network as a normal WordPress install. The mapping is all done by WordPress via the Network dashboard.

    You might need to tell your hosting Control Panel about the domains and possibly point those domains at the root directory. I don’t know much about XAMPP but if the WordPress doesn’t see the domain that’s usually the problem once DNS points it at the proper IP.

    Some ISPs block port 80 and 8080 so you’ll need to contend with that if your host does the same. I imagine you’ll find a lot of help with those type problems in places like StackExchange.

    Hi
    Thanks for your response. As mentioned earlier, I have a subdirectory structure for the multisite network. I installed WordPress MU Domain Mapping plugin, however, it doesn’t support sub-directory structure. Pls. advise

    Thanks
    BM

    Did you ever get this worked out @dhyanakendra ? I think the problem here might be a misunderstanding of the “subdirectory” concept. WP multisites that are setup as a “subdirectory” installation (as opposed to a “subdomain” installation) do not have whole entire sites in literal subdirectories with paths as you’ve shown here. The “subdirectory” configuration refers to the way your permalinks are structured, e.g., example.com/site1, example.com/site2, etc. (in a subdomain configuration, your sites would have URLs like this: site1.example.com, site2.example.com)

    • This reply was modified 4 months, 1 week ago by kalico.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.