Apache "Option -Indexes" and 404 Not Found |
Apache "Option -Indexes" and 404 Not Found |
Feb 17 2010, 11:47 PM
Post
#1
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Administrator Posts: 2,648 Joined: Apr 2008 Member No: 639,265 |
On my website, I have directory listings disabled via an "Options -Indexes" line in my .htaccess file. However, requests for directories that do not have an index.html file return 403 Forbidden. Is there a way to have it return 404 Not Found instead?
|
|
|
|
![]() |
Feb 18 2010, 01:45 AM
Post
#2
|
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 1,237 Joined: May 2008 Member No: 648,123 |
Do you specifically need a 404 response? If not, you could just send 403 errors to a custom 404 error document.
|
|
|
|
mipadi Apache "Option -Indexes" and 404 Not Found Feb 17 2010, 11:47 PM
mipadi That's what I'm doing, but I would like to... Feb 18 2010, 08:19 AM
fixtatik Hrm, no idea. Apache's one of my more prominen... Feb 19 2010, 12:38 AM
manny-the-dino Topic Closed, and Moved to Resolved Topics. Please... Apr 2 2010, 01:00 PM![]() ![]() |