• Resolved ekeyte

    (@ekeyte)


    Hello!

    My client has a WordPress 4.0 site on GoDaddy. I uploaded some content to a newer directory (uploads/09), and saw that the images when directly accessed were returning a 404 error. I checked the images in the uploads/02 and they were loading, so I moved the files from uploads/09 to uploads/02 and they’re still returning a 404 error.

    Below is the .htaccess file in the root directory:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Images are not served through WordPress. They go through the webserver normally. If you’re getting a 404 on an image you know is on the system in the right path, then that’s outside of WordPress. Check the permissions and ownership of the file, make sure the webserver can read it.

    Those .htaccess rules are the standard ones. Nothing special about them.

    Hey there

    Did you upload these images via FTP? If so, you are going to need to let WordPress “recognize” the images. To do this, use the plugin below:

    https://www.ads-software.com/plugins/add-from-server/

    Let me know if you have any questions!

    Thread Starter ekeyte

    (@ekeyte)

    The files were uploaded through “Add Media” – they were not imported via FTP.

    What seems strange is that these particular images are returning a 404 error, even in the same directory as the images that are working properly.

    The permissions are all the same (644), as are the MIME types (image/x-generic). I presume the owner of the images is the wordpress user (www-data? It’s GoDaddy, so I’m not sure what the default webserver user is, but that shouldn’t matter given the permissions).

    I hope this helps.

    hey there,

    Can you link me to some of the images that are returning the 404? Thanks!

    Oh, and to some that are working. thanks

    Thread Starter ekeyte

    (@ekeyte)

    Hey Mike,

    Thanks for being so responsive. I think I have a better lead here.

    First, I discovered that when I entered the GoDaddy File Manager, it’s showing only dates up to March. (uploads/2014/03), but when I log in via FTP, it’s showing directories up to September. I think that the Add Media link is not sending uploads to the correct directories, but I haven’t figured out how this site is supposed to work. I inherited it from someone else.

    Hey there,

    Check this out:

    https://www.ads-software.com/plugins/wp-original-media-path/

    That might be helpful to you as it sounds like maybe the file path is wrong for uploadign new media. You could also check this out too:

    https://www.wpbeginner.com/wp-tutorials/how-to-change-the-default-media-upload-location-in-wordpress-3-5/

    Thread Starter ekeyte

    (@ekeyte)

    Wow, thanks Mike! I appreciate it!

    No problem man. hopefully that actually helps solve your issue (fingers crossed)

    Thread Starter ekeyte

    (@ekeyte)

    I’m going to mark this as resolved. ??

    Sweet, have a great day ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Some images serving, others not’ is closed to new replies.