WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a reasonably fresh WordPress install on my Ubuntu Linux server and I uploaded an image to it for use in a blog post. I checked the path in WordPress settings and I checked the contents on the server:

$ ls -l /srv/www/wp-uploads/blog.linformatronics.nl/2013/01
total 320
-rw-rw-r-- 1 www-data www-data 22033 Jan 19 10:23 ccs5licence1-150x150.png
-rw-rw-r-- 1 www-data www-data 64195 Jan 19 10:23 ccs5licence1-300x214.png
-rw-rw-r-- 1 www-data www-data 22033 Jan 19 10:19 ccs5licence-150x150.png
-rw-rw-r-- 1 www-data www-data 71973 Jan 19 10:23 ccs5licence1.png
-rw-rw-r-- 1 www-data www-data 64195 Jan 19 10:19 ccs5licence-300x214.png
-rw-rw-r-- 1 www-data www-data 71973 Jan 19 10:19 ccs5licence.png

The files are actually uploaded through WordPress, so it has write access to the filesystem/directory.

But when I try to use it in a blog post it shows a broken image and when I point the webbrowser directly to the image it throws an error 404 page: https://blog.linformatronics.nl/wp-uploads/2013/01/ccs5licence1.png

From the settings => media page in WordPress:

Uploading Files
Store uploads in this folder /srv/www/wp-uploads/blog.linformatronics.nl    
Full URL path to files       http://blog.linformatronics.nl/wp-uploads  

I'm fairly new to WordPress, so I still need to find my way around a bit.

share|improve this question
I never heard of a wp-uploads/2013/01/ directory structure, but wp-content\uploads\2013\01. Is everything alright? or I'm wrong? – Mayeenul Islam Jan 19 '13 at 9:55
When I upload a file using the WordPress built in media upload dialog, the files are actually put into the exact mentioned location and I copied the settings in my post. The average Linux server uses forward slashes. – jippie Jan 19 '13 at 11:10
Solved it by adding a symlink: sudo ln -s /srv/www/wp-uploads wp-uploads Still don't know why it doesn't work through the regular config, but apparently the rewrite rules are not in place. – jippie Jun 27 '13 at 19:52

I think the problem is that you are storing your images in /srv/www/wp-uploads/blog.linformatronics.nl/2013/01 but your link to the image is https://blog.linformatronics.nl/wp-uploads/2013/01/ccs5licence1.png.

What you need to do is tell wordpress to store the images in /srv/www/blog.linformatronics.nl/wp-uploads/2013/01.

What your trying to do, it seems, is store images in wp-uploads/blog.linformatronics.nl but the folders should be swapped. It's the website name and then the wp-uploads folder.

share|improve this answer
The problem is why images are being uploaded to that strange location. Can you explain why that might be happening or what to do to fix it? – s_ha_dum Jan 19 '13 at 22:52
As you said the settings from Setings > Media is Store uploads in this folder /srv/www/wp-uploads/blog.linformatronics.nl That needs to be /srv/www/blog.linformatronics.nl/wp-uploads/ OR /srv/www/wp-uploads/. Which one works will more depend on your server setup – Vincent P Jan 20 '13 at 9:35

Just ran into this problem and found that navigating to Settings > Media and then changing the Full URL path to files setting from




eg http://blog.mysite.com/wp-uploads/blog.mysite.com

share|improve this answer
Still receive the 404. – jippie Jun 27 '13 at 19:34
Did solve it now with a symlink, see above. Your hint was part of the solution. – jippie Jun 28 '13 at 19:45

You are telling WordPress to store the images outside the path of your WordPress install. It is doing that but is then not able to access them.

If you specifiy a path within the WordPress install (the default is wordpress/wp-content/uploads/) WordPress will be able to find the stored images.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.