Ben Iskander
Ben Iskander

Reputation: 616

Wordpress uploads folders giving 404 errors - still happening

I'm checking our webmaster tools account again and some of our wp-content/uploads folders are showing up as 404 errors. i.e…

http://www.example.com/wp-content/uploads/2012/02/
http://www.example.com/wp-content/uploads/2013/08/
http://www.example.com/wp-content/uploads/2014/01/

The folders don't have anything in them except the uploaded images (no blank html file etc) and the file paths to the images in those folders are working fine. Obviously I don't want to block crawl access to the folders as quite a few of our images are being indexed in google image search.

Any idea why the paths to these folders would be giving a 404 error?

Upvotes: 2

Views: 3203

Answers (2)

Mustafa sabir
Mustafa sabir

Reputation: 4360

I solved this issue by fixing the .htaccess file that was present in my uploads directory. Which had code to stop execution of php files. This could have been added by wordfence security plugin.

You can either delete any created .htaccess inside uploads or change its permission to 644.

Upvotes: 1

devools
devools

Reputation: 73

Check the permission settings for the upload directory, if they are aren't either 755 or 750 then check out the Wordpress docs Changing File Permissions

Upvotes: 0

Related Questions