Author | Message | Time |
---|---|---|
DVX | recently i've found need of having to create custom 404 pages.. i don't like the default ones.. anyone know how i can do this? i am using plesk on linux btw if that means anything.. | January 28, 2004, 6:33 PM |
Null | I believe the standard 404 pages reside somewhere on your web server , simply making your own and then replacing it should do the trick. | January 28, 2004, 10:23 PM |
St0rm.iD | If you're using apache, look at the .htaccess file documentation. | January 28, 2004, 11:28 PM |
iago | It totally depends on your web server. Look at the documentation. | January 29, 2004, 12:43 AM |
Grok | Let me get this straight --- you can't find your 404 page? :p | January 29, 2004, 2:48 AM |
iago | It's usually stored at www.yoursite.com/iagoisthebest.txt :) | January 29, 2004, 3:25 AM |
UserLoser. | [quote author=iago link=board=22;threadid=4972;start=0#msg41609 date=1075346740] It's usually stored at www.yoursite.com/iagoisthebest.txt :) [/quote] Looks like a free credit card give away to me | January 29, 2004, 7:47 PM |
hismajesty | [quote author=UserLoser. link=board=22;threadid=4972;start=0#msg41699 date=1075405635] [quote author=iago link=board=22;threadid=4972;start=0#msg41609 date=1075346740] It's usually stored at www.yoursite.com/iagoisthebest.txt :) [/quote] Looks like a free credit card give away to me [/quote] Looks like "Free Credit Card Gateway!" to me. :) | January 30, 2004, 10:09 AM |
iago | [quote author=hismajesty link=board=22;threadid=4972;start=0#msg41806 date=1075457348] [quote author=UserLoser. link=board=22;threadid=4972;start=0#msg41699 date=1075405635] [quote author=iago link=board=22;threadid=4972;start=0#msg41609 date=1075346740] It's usually stored at www.yoursite.com/iagoisthebest.txt :) [/quote] Looks like a free credit card give away to me [/quote] Looks like "Free Credit Card Gateway!" to me. :) [/quote] And guess what, that's the site's 404 page. You see? | January 31, 2004, 4:22 AM |
peofeoknight | wow, all that html being read by my browser has a .txt extention. Interesting | January 31, 2004, 5:31 AM |
iago | The extension doesn't matter. Anything can send the response, "text/html" or "text/plain", the extension only matters if that's how the content-type is decided. | January 31, 2004, 6:54 AM |
phily05 | To actually answer your question, make a file called .htaccess in your root directory. Inside that file, type in, or copy and paste this: ErrorDocument 404 /error404.html Once again, in your root directory, create a webpage named error404.html. It will read from there. I have it working up on my site. | January 31, 2004, 5:01 PM |
peofeoknight | [quote author=phily05 link=board=22;threadid=4972;start=0#msg41981 date=1075568509] To actually answer your question, make a file called .htaccess in your root directory. Inside that file, type in, or copy and paste this: ErrorDocument 404 /error404.html Once again, in your root directory, create a webpage named error404.html. It will read from there. I have it working up on my site. [/quote] Thats only for apache (as far as I know). For iis you have to set it in the dir settings/ | January 31, 2004, 11:51 PM |
Thing | He's using Plesk so he doesn't know what .htaccess is. | January 31, 2004, 11:52 PM |
iago | Like I said, it's always different, look it up in your server's documentation. If you're using Apache, modify .htaccess. If you aren't, don't. | February 1, 2004, 11:01 PM |
Thing | Iago, he doesn't know wtf you are talking about. Plesk is a CP installed by administrators so lusers can configure certain aspects of their site. If he had set up the server himself or if he was an enlightened luser, he would have said he was using Apache on Linux or maybe even Zeus on Linux. | February 2, 2004, 4:11 AM |
iago | [quote author=Thing link=board=22;threadid=4972;start=15#msg42257 date=1075695114] Iago, he doesn't know wtf you are talking about. Plesk is a CP installed by administrators so lusers can configure certain aspects of their site. If he had set up the server himself or if he was an enlightened luser, he would have said he was using Apache on Linux or maybe even Zeus on Linux. [/quote] The fact that he hasn't at the very least followed that up by telling us is even worse. Anybody who really wants help won't post-and-forget :) | February 2, 2004, 6:32 PM |
peofeoknight | these are the kinds of things that would be in a major host's faq. Even if you do not run the server yourself, you should definatly know it. Its not a well guarded secret, you can access it like any other server variable. | February 5, 2004, 4:01 AM |