GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   Make a Custom 404 Error Page for Fun and Profit [[Tutorial]] (https://gfy.com/showthread.php?t=905142)

Sands 05-13-2009 03:49 PM

Make a Custom 404 Error Page for Fun and Profit [[Tutorial]]
 
Hey guys, I wrote a short and sweet blog post on the ETU-Cash webmaster blog that talks about creating a custom 404 error page to take advantage of wayward visitors.

You can read it here!

I hope you enjoy it and can put it to good use, and if you liked it, or hated it, or just want an excuse to type something, leave a comment! :thumbsup

RenegadeCash Mark 05-14-2009 10:03 AM

Good stuff Sands!

CYF 05-14-2009 04:50 PM

If you have access to httpd.conf you can add the following to it:

ErrorDocument 404 /missing.html

That'll let you have a custom missing.html on every site and not have to mess around with a .htaccess for each site.

Decent article tho.

Sands 05-15-2009 11:32 AM

Quote:

Originally Posted by CYF (Post 15854338)
If you have access to httpd.conf you can add the following to it:

ErrorDocument 404 /missing.html

That'll let you have a custom missing.html on every site and not have to mess around with a .htaccess for each site.

Decent article tho.

Nice tip, thanks :)

TXXXTN 05-15-2009 11:51 AM

Quote:

Originally Posted by CYF (Post 15854338)
If you have access to httpd.conf you can add the following to it:

ErrorDocument 404 /missing.html

That'll let you have a custom missing.html on every site and not have to mess around with a .htaccess for each site.

Decent article tho.

Where in the httpd.conf while would I add ErrorDocument 404 /missing.html ?

CYF 05-15-2009 03:50 PM

Quote:

Originally Posted by AmateurSets (Post 15857180)
Where in the httpd.conf while would I add ErrorDocument 404 /missing.html ?

My httpd.conf has a section like this, and I simply uncommented that line and reloaded apache.

#
# Customizable error response (Apache style)
# these come in three flavors
#
# 1) plain text
#ErrorDocument 500 "The server made a boo boo.
# n.b. the (") marks it as text, it does not get output
#
# 2) local redirects
ErrorDocument 404 /missing.html
# to redirect to local URL /missing.html
#ErrorDocument 404 /cgi-bin/missing_handler.pl
# N.B.: You can redirect to a script or a document using server-side-includes.

Rick Diculous 05-15-2009 06:09 PM

nice. thanks for sharing

pornocruto 05-26-2009 08:14 AM

Thanks for sharing Sands, great article..


All times are GMT -7. The time now is 04:44 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc