I’m running a project on my local web server, but by some reason I can’t view the images (put in ‘img/’). I have tried to change folder, but it’s the same thing, so I suppose it’s related to the actual images.
What can I do to solve this?
Note: I read somewhere about changing a .htaccess file, but I don’t seem to have that file.
Note 2: I’m on Mac OS
'You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.'
Error 403
localhost
Wed Oct 31 14:15:57 2012
Apache/2.2.14 (Unix) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l PHP/5.3.1 mod_perl/2.0.4 Perl/v5.10.1
In simple words HTTP status code 403 means Forbidden..which means that you do not have sufficient privileges/access-rights to perform the desired operation which in this case is reading images from the img folder..
You don’t require .htaccess in this case..you need to check directory permissions for your img folder and set them to 755(-rwxr-xr-x)..as you are on Mac, you may go through Mac OS X knowledge-base article on Troubleshooting permissions to understand how you can setup directory permissions for Mac..