• Hi, I’m new to WP’s multisite functionality, and I have a question that I can’t find the answer…

    Assuming I have setup 10 sub-domains, eg, a.ddd.com, b.ddd.com, c.ddd.com etc. (in random order) and resulting 10 folders labeled 1, 2, 3…. etc in the blog.dirs folder.

    How can I easily identify which folder is belonging to which sub-domain? eg, folder “1” is belong to the “e.ddd.com” and folder “2 is belong to the “a.ddd.com” ?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • These numbers are the unique site (blog) IDs, used to identify each one’s database tables.

    1. Go to Network Admin, then Sites.
    2. In the Path column, hover your mouse over any blog’s path, and look for its URL appearing in your browser’s status bar.
    3. You should see e.g.
    https://a.ddd.com/wp-admin/network/site-info.php?id=1
    where the ID number is shown at the end.

    I have setup … and resulting 10 folders labeled 1, 2, 3…. etc in the blog.dirs folder

    You should not be creating these folders, they’re created automatically as and when required for the storage of uploaded files.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    If you want the numbers to show on your sites list page, I wrote this:

    https://code.ipstenu.org/hacks/site-id-columns-multisite/

    Thread Starter dsy

    (@dsy)

    @ dgilmour
    When I saying “resulting….” I mean WP auto-generate those folders, sorry for the unclear wording, and thanks for the tip.

    @ Ipstenu
    Thanks for the link, I’ll take a look.

    I guessing there aren’t an easy way that can make WP to be user friendly with those folder names, ideally for me, if those folder can be named as the sub-domain, that will be great. eg- WP will generate a folder called “news” in blog.dir folder for the “news.ddd.com” sub-domain.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    The image folders will ALWAYS be a number, but that’s why WP has the trick to seemlessly point news.ddd.com/files to ddd.com/wp-content/blogs.dir/#/files/ ?? Make it LOOK pretty on the front.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘identification of blog.dir's subfolders’ is closed to new replies.