• Welcome to Valhalla Legends Archive.
 

creating custom 404 error pages

Started by DVX, January 28, 2004, 12:33 PM

Previous topic - Next topic

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..

effect

I believe the standard 404 pages reside somewhere on your web server , simply making your own and then replacing it should do the trick.

Quote from: Mangix on March 22, 2005, 03:03 AM
i am an expert Stealthbot VBScript. Recognize Bitch.

Banana fanna fo fanna

If you're using apache, look at the .htaccess file documentation.

iago

It totally depends on your web server.  Look at the documentation.

This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Grok

Let me get this straight --- you can't find your 404 page?  :p

iago

This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


UserLoser.


hismajesty

#7
Quote from: UserLoser. on January 29, 2004, 01:47 PM
Quote from: iago on January 28, 2004, 09:25 PM
It's usually stored at www.yoursite.com/iagoisthebest.txt :)

Looks like a free credit card give away to me

Looks like "Free Credit Card Gateway!" to me. :)

iago

Quote from: hismajesty on January 30, 2004, 04:09 AM
Quote from: UserLoser. on January 29, 2004, 01:47 PM
Quote from: iago on January 28, 2004, 09:25 PM
It's usually stored at www.yoursite.com/iagoisthebest.txt :)

Looks like a free credit card give away to me

Looks like "Free Credit Card Gateway!" to me. :)

And guess what, that's the site's 404 page.  You see?
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


quasi-modo

wow, all that html being read by my browser has a .txt extention. Interesting
WAR EAGLE!
Quote(00:04:08) zdv17: yeah i quit doing that stuff cause it jacked up the power bill too much
(00:04:19) nick is a turtle: Right now im not paying the power bill though
(00:04:33) nick is a turtle: if i had to pay the electric bill
(00:04:47) nick is a turtle: id hibernate when i go to class
(00:04:57) nick is a turtle: or at least when i go to sleep
(00:08:50) zdv17: hibernating in class is cool.. esp. when you leave a drool puddle

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.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


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.

quasi-modo

#12
Quote from: phily05 on January 31, 2004, 11:01 AM
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.
Thats only for apache (as far as I know). For iis you have to set it in the dir settings/
WAR EAGLE!
Quote(00:04:08) zdv17: yeah i quit doing that stuff cause it jacked up the power bill too much
(00:04:19) nick is a turtle: Right now im not paying the power bill though
(00:04:33) nick is a turtle: if i had to pay the electric bill
(00:04:47) nick is a turtle: id hibernate when i go to class
(00:04:57) nick is a turtle: or at least when i go to sleep
(00:08:50) zdv17: hibernating in class is cool.. esp. when you leave a drool puddle

Thing

He's using Plesk so he doesn't know what .htaccess is.
That sucking sound you hear is my bandwidth.

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.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*