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.