Hà Link
Hà Link

Reputation: 377

Can't get image even if it exist on server - 404 not found?

Even though the image I embed in the code exists in its folder in XAMPP, the browser still logs 404 not found. I guess it is a permission issues so I set for all files the mod of 777 and it works. However, I think it is not safe. What permission I need to change so that the browser can access the image and doesn't allow write and execute?

Upvotes: 0

Views: 1692

Answers (1)

Ben Fried
Ben Fried

Reputation: 2204

Standard chmod for web files is 644. That will allow the owner to edit/delete, but everyone else only to read.

Upvotes: 1

Related Questions