• Have installed multisite on my local network as a test site using Xampp. Works fine. Able to create new subdoamins and access them without an issue. However when I import the database from current live site, none of the subdomains appear in the dashboard.

    Before importing, I changed the references from the live site domain to the local site domain name.

    Any suggestions?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Do you have wildcard DNS turned on at your host?

    Thread Starter Safety13

    (@safety13)

    This is a local install. Yes, subdomains have been added to the host file.

    The subdomains are not being recognized under My Sites >> Network Admin >> Sites.

    > However when I import the database from current live site

    Can you give more details on how you do this? If you import an entire database, all your previous test data will be lost. If you are importing a WP single site into your WP multisite, then that will not work without other steps.

    Thread Starter Safety13

    (@safety13)

    Have been importing/adding the tables for the subdomains from the live site in to the local database.

    The live and test sites are both multisite. Only difference is the primary domain.

    > Have been importing/adding the tables for the subdomains from the live site in to the local database.

    This does not give me enough information. You cannot just copy a set of database tables from one WP instance and paste it into another WP stance (unless you really know what you are doing). That is why you are having problems.

    Let me give you examples of how I migrate db data from production to test/dev WP instance. I do it multiple ways depending on what I need:

    1) I export production database. I search and replace the prod url with the test url, prod.com -> test.com; then import it into test database. This way my test.com WP instance is exactly like my production but with a different url

    2) I export production database and then import that into my test database. I modify my desktop /etc/hosts file to have all my production urls point to my test WP instance. This makes my test WP instance identical to production.

    3) partial prod export. Sometimes I only export one site from prod to test/dev. It is a huge manual process that I have scripted.

    FYI – this is probably more pertinent to you. There is a table ‘wp_blogs’ that stores all the sites info. You probably need to copy it over and possibly modify some values before importing to dev. I would be careful, the main domain info is in there too.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Not seeing subdomains’ is closed to new replies.