• kimblim

    (@kimblim)


    Hey, I’ve created a bunch of sites on a mutisite setup using the subdomain model. I did this using a PHP script as there are more than 90 sites, so it saved me some time.

    However, now I’ve run into a bit of a problem: my “main” site is on some.domain.com and all other sites are on someother.domain.com, but when I try to create a new site using the admin, they get someother.some.domain.com (a sub-sub domain).

    What to do? Is this something I can fix some way..?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    If WP is installed as a subdomain multisite at some.domain.com and you make subsites, they’re supposed to be newsite.some.domain.com

    Your script was doing something wonky.

    You’ll need to manually edit the site URL in Network Admin > sites > Edit Site. Change it from someother.some.domain.com to someother.domain.com manually.

    Thread Starter kimblim

    (@kimblim)

    Thanx — I would prefer it so that I don’t have to fix anything manually but that I can add sites through the admin without anymore hassle. Is there a piece of code I can add to something like functions.php or somewhere else that will make it work like I want it to.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Not that I know of. The way subdomains are designed is to be a … SUB of the domain ?? So if WP thinks your domain is some.domain.com, well there you go.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘New sites gets wrong URL’ is closed to new replies.