• Resolved Daniel J. Lewis

    (@djosephdesign)


    I’m trying to migrate my WordPress sites with UpdraftPlus but I’m running into a weird and frustrating problem after restores.

    My site has some SVGs. They work fine on the original site, but when restoring on a new domain from an UpdraftPlus back, all those SVGs fail with a server 403 “forbidden” error.

    Even weirder than that is that any new SVG I upload after the restore does work! Huh?

    I checked my file and folder permissions and owners via SSH and didn’t see any difference. They both have the same permissions, same owners, same group. But no matter what, the SVGs from the restore won’t load—not even opening their URLs directly! But new SVGs load just fine!

    I’ve also already tried disabling all plugins and switching to a default theme and that doesn’t change anything.

    Any ideas what to check further or how to fix this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Daniel J. Lewis

    (@djosephdesign)

    Well this was a weird one!

    And instead of saying “Fixed it, thanks!” and moving on, I’ll share what I figured out in hopes that it helps others.

    The problematic SVGs were all uploaded to products in Easy Digital Downloads (EDD) into the folder /wp-content/uploads/edd/….

    When I went looking further, I found a .htaccess file in that folder that was blocking every file type except a few image types. I added svg to that list and the problem went away!

    But why did this make a difference? In this test, I was moving a website away from an Nginx-based hosting environment (where .htaccess files don’t matter) to a Docker image that—I just discovered—uses Apache (that does use .htaccess files) instead of Nginx.

    So this was not any problem caused by UpdraftPlus! It was all about the change in hosting environments.

    Plugin Support nrobertsudp

    (@nrobertsudp)

    Hi Daniel,

    Thank you for sharing the solution. It’s very helpful and considerate.
    It may well help point someone in the right direction in the future…

    Best regards,

    Nick

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    Thanks! After reading the initial post, before I read your resolution I was going to suggest looking for .htaccess files!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.