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)
-   -   Q for Unix gurus: How can I setup a 404 page (https://gfy.com/showthread.php?t=700868)

BillTaylor 01-29-2007 06:14 PM

Q for Unix gurus: How can I setup a 404 page
 
My website is hosted on a Unix server, and I would like to setup a custom 404 page because I receive a lot of "page not found" traffic. I understand I need to edit a .htaccess file, can someone give me a few clues on how to do this?

htipper 01-29-2007 07:27 PM

Try adding:

Quote:

ErrorDocument 404 your_404.html
to your .htaccess

htipper 01-29-2007 07:48 PM

Oh, and if you are not really used to this sort of thing, try reading javascriptkit dot com /howto/ htaccess. shtml (cannot link as I have not yet made thirty posts, evidently). The page after the one linked gets immediately into what I think you are interested in.

Cheers.

calmlikeabomb 01-30-2007 03:40 PM

It's best to disable .htaccess and edit your apache (?) configuration file (httpd.conf) directly. Otherwise, apache has to search a directory for .htaccess every time it's accessed.

However, .htaccess will work - just a tip.


All times are GMT -7. The time now is 03:19 PM.

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