• I’ve been scouring the forums, but can’t seem to make any solutions I’ve found work for me.

    My main multi-site https://infinite.nu is not uploading new images to the new correct location, nor is my secondary, https://oncecoupled.com

    I thought it must be related to my recent migration from a subfolder (/wp) to the site root, because my upload path says “public_html/wp/wp-content/uploads” when it should not have the “/wp”. However, the solutions I found for this were all suggesting changing my upload path.

    On the other hand, I recently installed multisite and this link https://www.ads-software.com/support/topic/images-broken-in-wp-multisite?replies=27 says not to change the path, but look at the htaccess file.

    (BTW: I did not test image up-loading between the migration and the install. I had all my old images showing correctly and thought that was the end of it.)

    Of course, I’m not sure what I’m looking for there. This is mine, currently:

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    # END WordPress

    I thought my upload paths were weird. For example, my secondary site says the image is at: https://infinite.nu/oncecoupled/wp-content/uploads/sites/4/2014/01/categories-content-01.png when in fact it is being uploaded to https://infinite.nu/wp/wp-content/uploads/sites/4/2014/01/screenshot.png. But after reading https://www.ads-software.com/support/topic/image-upload-problems-for-multisite-subdomain-site?replies=6 I’m unsure if that is actually how they are supposed to look (minus the /wp problem)? This now being said, I went back to test the problem again and I can’t see my file uploaded anywhere, which is perhaps because I tried to update my .htaccess file a bit earlier.

    I believe I’ve made quite a mess of things. I would appreciate any help that could be provided!

    Best,
    Lauren

Viewing 1 replies (of 1 total)
  • Thread Starter Lauren @ Once Coupled

    (@laurenng)

    Apologies for the quick double post, I wanted to post my solution in such a way that future readers could easily spot it.

    It turns out it must have been related to the moved directory, and not multi site or my htaccess file. Hopefully I did not create a poor hack, but following this advice https://www.ads-software.com/support/topic/pictures-upload-with-old-directory-settings?replies=6:

    ————————-

    “I solved the problem [by] updating the wp_options table, option_name=’upload_path’.”

    I went ahead and changed the upload path in my database, as well as that of my secondary site. To test that there would be no further problems, I created a third install and uploaded media. It worked immediately, without needing a database update.

    ————————-

    Cheers,
    Lauren

Viewing 1 replies (of 1 total)
  • The topic ‘Images Not Uploading to New Directory – Possible Migration Error?’ is closed to new replies.