View Single Post
Old 01-06-2005, 11:28 AM  
Workshop_Willy
Confirmed User
 
Join Date: Oct 2004
Location: Southern California
Posts: 452
Quote:
Originally Posted by damian2001
I have removed all the pages on a domain

I put in an htaccess with 404 handling and it works ok

Unless I go to the root ie. www.domain.com then it goes to the dir listing

I thought it wouldnt find an index page and then go to the 404

What am I doing wrong??

Thanks

Sorry for the stupid question
No such thing as a stupid question. Lots of good answers in here. Here's another one. As I understand it, you don't want anything other than a 404 appearing when someone hits a directory below your server root, correct? If that's the case, simply chmod all of those subdirectories to "700" and copy your 404 page (assuming it's custom and you want people to see something custom) to the 403 page. The http error message will be 403, but the page will be indentical to your 404. No need to muck around with htaccess then.

Just an option.
Workshop_Willy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote