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?
				
				
				
			 
			
			
					
		 | 
	
| 
			
			 | 
	|
![]()  | 
	
			
			  Apr 2 2010, 01:00 PM
			
				 Post
					#2
					
				
			 
		 | 
	|
        	
				
					![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Administrator Posts: 8,629 Joined: Jan 2007 Member No: 498,468  | 
       
			
			 
				Topic Closed, and Moved to Resolved Topics. Please PM a moderator if you would like this reopened.
				
				
				
			 
			
			
					
		 | 
	
| 
			
			 | 
	|
 mipadi   Apache "Option -Indexes" and 404 Not Found   Feb 17 2010, 11:47 PM
 
 fixtatik   Do you specifically need a 404 response? If not, y...   Feb 18 2010, 01:45 AM
 
 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![]() ![]()  |