by TazzyT » 11. July 2009 23:28
I had this same problem and have pulled a lot of hair but I figured it out. Maybe this will help you as well.
I was trying to view a local copy of a clients site and couldnt view any images. The css file loaded but not the images from the css file. Eventually I noticed the sites that would not display images contained a copy of the online sites .htaccess file and the sites that would display did not have the onlines .htaccess file. I deleted my local copy of the .htaccess file as the local site is for testing only (no public access), refreshed the page, and all my images appeared.
In your local site folder look for a .htaccess file. Here you have 2 options:
1) delete the local .htaccess (local only) file (best option if site is only a local copy for testing)
2) look for similar in your .htaccess file and either comment it out or delete it:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://sitename.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://sitename.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.sitename.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.sitename.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp|zip)$ - [F,NC]
Now if I could only get all those hours back and replace all the pulled out hair! Good luck and hope this helps!