• Resolved michaelware1205

    (@michaelware1205)


    I’m developing a new subdomain-driven WP multisite. There is only 1 site so far. Everything works as expected EXCEPT that media library images are stored as is if it is a single WP site. There are no subsite directories inside /wp-content/uploads

    For example, I’ve added an logo in the customizer. On the page, there is a 404 for the image at
    https://example.com/wp-content/uploads/sites/0/2022/01/QACPS-site-title.png

    That image exists in the media library, but the URL is missing ‘/sites/0/’ part:
    https://example.com/wp-content/uploads/2022/01/QACPS-site-title.png

    I can’t find any settings that would apply, no evidence that anyone has had this problem. The problem is not just on the server, but also true on my local install as well.

    The site was created locally using Local (Local by Flywheel) then migrated with WP Migrate DB Pro to a Siteground dev install.

    Any help would be appreciated.

    Thanks,
    Michael

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter michaelware1205

    (@michaelware1205)

    Figured it out. The custom logo function was borrowed from another theme and added the extra /site/0
    But the main site of a multisite install does not use a subdirectory in the uploads directory. I believe that only the subsites use that extra ‘/sites/#’

Viewing 1 replies (of 1 total)
  • The topic ‘Multisite Media Library URLs missing site ID’ is closed to new replies.