WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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've been changing my Permalinks and changing my site the the "www" version (Which I think has broken my image and video links). All my images are "red x" now, both inside the library and the posts themselves. I have been looking in my cpanel and all the file paths are correct, but if I try to view them through WP or even just copy the url and try it within my browser, it appears broken.

Is there a way to fix this at all? Other than reload everything back up. :-(

To update: I just re-uploaded an image and it was saved as header1.png, so WP can see that there is another image in there. It's strange because all the paths seem to match in my library to where they are stored within cpanel.

I feel that because I cahnged the permalink structure to %category%/%postname% that that is affecting the image structure which is wp-content/uploads/%year%/%month%/%imagename% by the looks of it.

share|improve this question
do you have this live anywhere? i don't believe the permalink structure effects the uploaded image URLs – helgatheviking Feb 23 '12 at 4:51
No it was locally. I think the problem was due to me changing to the www structure. I noticed on one page that an image had a padlock on it. So i reverted it all back to the non-www - it was too much hassle. I deleted and reset all my .htaccess files a few times and flushed my w3 caches to try and get it to work prior to changing back. Nothing worked. Appreciate the help though – Jonnny Feb 23 '12 at 20:31
up vote 1 down vote accepted

if you've monkeyed with your www structure you can change the image URLs (since they are hard-coded in the img src) using the following plugin:


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.