| Author |
404 with a directory that exists? |
BlackRat79
Member

Posts: 4
Location:
Joined: 31.03.11 Rank: Newbie |
|
I'm setting up my own website to play around with (nothing fancy I've always just been curious).
Anyhow, I've was experimenting with other sites for ideas and I ran across a site that gives a 404 error if I go to the directory, but there are files in the directory so it has to exist right?
I was wondering if anyone had ideas how how to recreate this. Is it a .htaccess configure or something more interesting? 
Thanks!
Rat
EDIT: On a side note, I'm also curious how to run shell commands from the html file. I know they do it in the basic challenges and I found that interesting.
Edited by BlackRat79 on 07-04-11 17:56 |
|
| Author |
RE: 404 with a directory that exists? |
spyware
Member

Posts: 4190
Location: The Netherlands
Joined: 14.04.07 Rank: God Warn Level: 90
|
|
Either it's set in the httpd (apache) configuration, or set in .htaccess, or it's just an imposter index. I bet if you would search for this shit on the internet, you would've answered your own question by now.

"The chowner of property." - Zeph Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term. - Carl Sagan Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor? - Ebert |
|
| Author |
RE: 404 with a directory that exists? |
BlackRat79
Member

Posts: 4
Location:
Joined: 31.03.11 Rank: Newbie |
|
Yeah.... don't you think I tried that?
Unfortunately trying to find anything DETAILED on .htaccess or httpd on google is a bit harder then a first glance gives. Including searching 404, hiding directories, configured 404, etc most of the results are complete crap or not what I need. And considering most websites guard their config files like gold, thanks to the default apache configuration, which it makes it hard to find examples. 
(unless you have methods to sneaking a glance at a actual sites .htaccess file which I would love to know)
So, thats why I was asking a human (not a search engine) for more exact solutions to my question. Trust me, if I can find the answer online I wouldn't bother bugging you guys would I?  |
|
| Author |
RE: 404 with a directory that exists? |
spyware
Member

Posts: 4190
Location: The Netherlands
Joined: 14.04.07 Rank: God Warn Level: 90
|
|
Sounds like you need to learn how to search, not how to force return a 404 page.
Also, I'm sure that this subject is covered in, for example, the apache manual.

"The chowner of property." - Zeph Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term. - Carl Sagan Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor? - Ebert |
|
| Author |
RE: 404 with a directory that exists? |
BlackRat79
Member

Posts: 4
Location:
Joined: 31.03.11 Rank: Newbie |
|
Alright then, well it sounds like you need to learn how to use constructive criticism, not being an ass.
So with that, unless someone else has anything to say that is related to my posted question, that does not involve why I am asking it, I am outa here!
Cheers  |
|
| Author |
RE: 404 with a directory that exists? |
spyware
Member

Posts: 4190
Location: The Netherlands
Joined: 14.04.07 Rank: God Warn Level: 90
|
|
How about you go fuck yourself?

"The chowner of property." - Zeph Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term. - Carl Sagan Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor? - Ebert |
|
| Author |
RE: 404 with a directory that exists? |
BlackRat79
Member

Posts: 4
Location:
Joined: 31.03.11 Rank: Newbie |
|
You do realize that I am not making you reply to my post. You are winding your self up for no real reason.
If you really have a problem with me asking a simple and related question on a public forum for web construction then why not just say that? To which I would not understand seeing as my question was simple and straight to the point. In fact, I even used semi-proper grammar (compared to that of other posters).
I was under the understanding that this was the "Webmaster's Lounge"; not "The Room of Noob Haters"
Again, if anybody has anything that could poke me in the right direction I would be grateful. |
|
| Author |
RE: 404 with a directory that exists? |
spyware
Member

Posts: 4190
Location: The Netherlands
Joined: 14.04.07 Rank: God Warn Level: 90
|
|
No, seriously, did you miss the myriad of pointers I gave you a few posts back?

"The chowner of property." - Zeph Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term. - Carl Sagan Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor? - Ebert |
|
| Author |
RE: 404 with a directory that exists? |
techb
Member

Posts: 384
Location:
Joined: 15.02.09 Rank: Hacker Level 2 |
|
spyware gave you what you needed. Now, all you need to do is read until you find the answer.
|
|
| Author |
RE: 404 with a directory that exists? |
Mtutnid
Member
Posts: 79
Location: HELL
Joined: 22.09.10 Rank: Hacker Level 3 |
|
Spyware did help you in a very nice way. You should learn to read before learning to search.
So remember when you're feeling very small and insecure
How amazingly unlikely is your birth
And pray that there's intelligent life somewhere up in space
'Cause there's bugger all down here on Earth |
|
| Author |
RE: 404 with a directory that exists? |
HacKid
Member

Posts: 30
Location:
Joined: 02.03.09 Rank: Active User |
|
what a chain.... learn to read > search > return a 404 error. 
not that I'm criticizing you BlackRat79, just summarizing what was said here. |
|
| Author |
RE: 404 with a directory that exists? |
techb
Member

Posts: 384
Location:
Joined: 15.02.09 Rank: Hacker Level 2 |
|
Oh, I forgot to mention; google, bing, yahoo, lmgtfy then read your results. Then you should have your answer.
RECAP:
search, read, apply.
|
|
| Author |
RE: 404 with a directory that exists? |
HacKid
Member

Posts: 30
Location:
Joined: 02.03.09 Rank: Active User |
|
Also... here's a link that might help (maybe?)
http://www.webmasterworld.com/apache/3731396.htm
don't flame me if that's not the right thing. I don't know Apache or .htaccess at all. haven't started to work on it myself yet. |
|
| Author |
RE: 404 with a directory that exists? |
starofale
Member

Posts: 211
Location: England
Joined: 05.12.07 Rank: God |
|
|
techb wrote:
Oh, I forgot to mention; google, bing, yahoo, lmgtfy
Dont forget DuckDuckGo and lmddgtfy
Try a new search engine |
|
| Author |
RE: 404 with a directory that exists? |
nack
Member
Posts: 15
Location: on the moon
Joined: 20.01.11 Rank: Hacker Level 1 |
|
|
starofale wrote:
Dont forget DuckDuckGo and lmddgtfy
dude! why haven't I heard about this! thanks! 
79 6f 75 20 77 61 73 74 65 64 20 79 6f 75 72 20 74 69 6d 65 20 64 65 63 6f 64 69 6e 67 20 74 68 69 73 20 68 61 20 68 61 20 68 61 21
Edited by nack on 08-04-11 15:06 |
|
| Author |
RE: 404 with a directory that exists? |
COM
Banned

Posts: 800
Location:
Joined: 31.08.07 Rank: God |
|
Thank you HacKid for being the only one to actually post something relevant instead of mimicking spyware because if he does it, it's safe to pile on, have a community point.
K'aem'nhi kh'rn, K'aem'nhi kh'r, K'aem'nhi kh'rmnu.
I'a Y'gs-Othoth! |
|
| Author |
RE: 404 with a directory that exists? |
starofale
Member

Posts: 211
Location: England
Joined: 05.12.07 Rank: God |
|
@COM
Are you talking about DuckDuckGo?
If you are, I'm not using it becuase spyware is using it. I'm using it becuase I think it's a good search engine and it doesn't store loads of data about me.
I posted those links because not many people have heard of DuckDuckGo (as nack's post shows) and I think people would be interested in a good alternative to Google.
Try a new search engine |
|
| Author |
RE: 404 with a directory that exists? |
COM
Banned

Posts: 800
Location:
Joined: 31.08.07 Rank: God |
|
@starofale
And you are absolutely adorable It's so cute when you project due to something I never said <3
K'aem'nhi kh'rn, K'aem'nhi kh'r, K'aem'nhi kh'rmnu.
I'a Y'gs-Othoth! |
|
| Author |
RE: 404 with a directory that exists? |
starofale
Member

Posts: 211
Location: England
Joined: 05.12.07 Rank: God |
|
COM wrote:
@starofale
And you are absolutely adorable 
Thank you COM 
Did I not understand your post correctly then?
Try a new search engine |
|
| Author |
RE: 404 with a directory that exists? |
COM
Banned

Posts: 800
Location:
Joined: 31.08.07 Rank: God |
|
|
starofale wrote:
Did I not understand your post correctly then?
Pretty much.
Anyhow, OP, this one's for you:
If the site you're on allows for PHP or similar and you do not want to fuck about with .htaccess, then an alternative solution would be to put an index.php file in there that sends back a custom 404 header. Or whatever header you want, honestly.
K'aem'nhi kh'rn, K'aem'nhi kh'r, K'aem'nhi kh'rmnu.
I'a Y'gs-Othoth! |
|