• Resolved mcyzyk

    (@mcyzyk)


    I have created a folder: /iiif_manifests/

    I am on a WP Multsite, so the Media Library Folders admin widget lists this as:

    /114/iiif_manifests

    (Where “114” is the WP Multisite site folder, presumably.)

    I am trying, first, to find the absolute URL for an item in my /iiif_manifests/ folder. So I tried:

    https://myserver/mysite/iiif_manifests/Aquilar.json

    No joy.

    So I tried:

    https://myserver/mysite/114/iiif_manifests/Aquilar.json

    Still no joy.

    Three questions:

    1. What is the absolute URL to items in my Media Library Folder?
    2. What then is the relative URL for these items, relative, that is, to the site itself.
    3. What happens when I migrate a site from my Development WP Multisite to my Production WP Multisite? Will all this break?

    Many thanks!

    Mark

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author AlanP57

    (@alanp57)

    The easy way to find the URL of the folder, is to place a file in the folder. In Media Library Folders, click on the file which will open the Edit Media page of the file in a new tab. On this page, in the right column is a field, FIle URL. Click the copy URL to clipboard button. Paste the URL into a a text editor. Now you the URL of the folder. This is the absolute URL

    I can say for certain what the relative URL would be. I think it is dependent on the name of the site.

    I do not have experience with moving a multi site. But when moving a site using Media Library Folders. The best approach is to deactivate the plugin and activate the Media Library Folders Reset plugin and run the reset process. This delete all the folder data. You will not need that once the site is migrated. It works better to regenerate the folder data from scratch after successfully completing the migration.

    When moving the site, you will need to update all the URLs in the database. If you use a plugin such as All In One Migration, it will do this for you. If you move the site manually, you can use the Better search and replace plugin to update all the URLs in the database. One great feature about the Better search and replace plugin is its dry run feature, that you can use without making any real changes to the database. Also if you do use Better search and replace, for the old and new domains, do not enter the ‘https://’ of the domains, as this will result in having ‘https://’ appear twice in every URL.

    Thread Starter mcyzyk

    (@mcyzyk)

    Thanks! This is SUPER helpful.

    I do use All In One Migration, so am hoping it works its magic. (Otherwise, I’ve used the Velvet Blues plugin to change URLs strings in bulk…)

    MUCH appreciated,

    Mark

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Relative URL on WP Multisite Site’ is closed to new replies.