GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   404 Document Not Found Question (https://gfy.com/showthread.php?t=440806)

camcutie 03-06-2005 07:47 PM

404 Document Not Found Question
 
We would like to start taking advantage of our "404 Document Not Found" & "Authorization Required" hits with an ad page. Does anyone know how to do this. Is it a script or something that has to be loaded on the server end? Any help would be much appreciated.... :)

XOXOXO
*Krystal*

Tony Montana 03-06-2005 07:50 PM

htaccess

viki 03-06-2005 07:50 PM

Make a .htaccess page with the following info:

ErrorDocument 400 http://www.site.com
ErrorDocument 401 http://www.site.com
ErrorDocument 403 http://www.site.com
ErrorDocument 404 http://www.site.com
ErrorDocument 500 http://www.site.com

Tony Montana 03-06-2005 07:50 PM

Here we go!

The following is an example use of the .htaccess ErrorDocument file to send '404' Page Not Found Errors to your own custom error page.

You will see that it is so simple that it's almost silly... :)

Simply make a text file in NOTEPAD (for a Windows based system) with the following:

ErrorDocument 404 http://www.yourdomain.com/your-404-page.html




Then save the file as ' .htaccess '

Then FTP it to your root web sites directory (the directory that the FTP puts you in when you first log-in).

Thats it !

Michael O 03-06-2005 07:51 PM

Do a search for htaccess or take a look here : http://www.cleos-free-porn-links.com...aster-help.php
Its made by Cleo and It has a lot of handy tools :)

VIPimp 03-06-2005 07:51 PM

*** TIP - copy and paste the following in your .htaccess file to send all your error traffic to your hosted trap:

ErrorDocument 400 http://www.epicgals.com/epic404/?
ErrorDocument 401 http://www.epicgals.com/epic404/?
ErrorDocument 403 http://www.epicgals.com/epic404/?
ErrorDocument 404 http://www.epicgals.com/epic404/?
ErrorDocument 500 http://www.epicgals.com/epic404/?

What each error/line means:
400 - Bad request
401 - Authorization Required
403 - Forbidden
404 - Wrong page
500 - Internal Server Error





Replace the url to whatever you want it to go to.

DateDoc 03-06-2005 07:53 PM

Quote:

Originally Posted by camcutie
We would like to start taking advantage of our "404 Document Not Found" & "Authorization Required" hits with an ad page. Does anyone know how to do this. Is it a script or something that has to be loaded on the server end? Any help would be much appreciated.... :)

Just put up a sponsor page. TripleXcash has them premade for you. Check mine out by clicking this broken link: www.booty411.com/mian.shtml

camcutie 03-06-2005 08:10 PM

Wow........thanks for all the replies. I will start looking in to all of them. I have been also searching for a 404 tutorial on the net without success. Does anyone know of one? I will look at the Cleo one now reccommended by Keyser.

So far just today on our server stats we show 57077 requests for 404......is that a lot? We use about 30 Gigs of bandwidth per day.

XOXOXO
*Krystal*

camcutie 03-06-2005 08:12 PM

Quote:

Originally Posted by Tony Montana
Here we go!

The following is an example use of the .htaccess ErrorDocument file to send '404' Page Not Found Errors to your own custom error page.

You will see that it is so simple that it's almost silly... :)

Simply make a text file in NOTEPAD (for a Windows based system) with the following:

ErrorDocument 404 http://www.yourdomain.com/your-404-page.html




Then save the file as ' .htaccess '

Then FTP it to your root web sites directory (the directory that the FTP puts you in when you first log-in).

Thats it !

Thanks as always Tony.....I hope it is that simple. :thumbsup

XOXOXO
*Krystal*

PrivateIvy 03-06-2005 09:52 PM

Quote:

Originally Posted by camcutie
Wow........thanks for all the replies. I will start looking in to all of them. I have been also searching for a 404 tutorial on the net without success. Does anyone know of one? I will look at the Cleo one now reccommended by Keyser.

So far just today on our server stats we show 57077 requests for 404......is that a lot? We use about 30 Gigs of bandwidth per day.

XOXOXO
*Krystal*

check here for htaccess help..not sure what you mean by a specific 404 tutorial:

http://clockwatchers.com/htaccess_tool.html

http://htaccess.awstuff.com/

http://www.freewebmasterhelp.com/tutorials/htaccess/

and of course Google can give you tons more :winkwink:

Ivy

fusionx 03-06-2005 09:59 PM

Quote:

Originally Posted by camcutie
Wow........thanks for all the replies. I will start looking in to all of them. I have been also searching for a 404 tutorial on the net without success. Does anyone know of one? I will look at the Cleo one now reccommended by Keyser.

So far just today on our server stats we show 57077 requests for 404......is that a lot? We use about 30 Gigs of bandwidth per day.

XOXOXO
*Krystal*

Check your stats and raw server logs - with that many, it's likely full of favicon.ico or maybe some bad code somewhere - like a spacer.gif not being found or some other hard to notice file missing.

If it's true 404, you're missing out on a bunch of eyeballs, even figuring in the percentage that manipulate the URL looking for free shit..

BTW - there's no .htaccess for windows systems (as someone mentioned above). In windows, you need to set up a 404 redirect in the Internet Services console. Simple to do - just not as quick and easy as .htaccess.

Another great site for error doc stuff, and everything else about .htaccess: http://www.javascriptkit.com/howto/htaccess2.shtml

camcutie 03-06-2005 10:39 PM

Thank you PrivateIvy and Fusionx.......I appreciate the additional info. I will let you guys know how it all turns out and if we get it working. As of now I think I hear Joe mumbling something about writing our tech guy at the host with all the info I'm gathering here at GFY. :1orglaugh :1orglaugh :1orglaugh :1orglaugh

XOXOXO
*Krystal*

camcutie 03-09-2005 12:58 PM

Thanks for all the help guys.......finally got my 404 page up. :)

Click this non existent page and it should take you there http://www.camcutie.com/nopage.htm

Let me know if that is a good page to keep up please.

XOXOXO
*Krystal*

JFPdude 03-09-2005 01:08 PM

heh ... ok here's were a server admin steps in:

ErrorDocument should only be used if your sending the bad hit back to your own server and then you use the path to the file.

Example:

ErrorDocument 404 /home/userid/domain.coc/htdocs/index.html

If you are sending the bad hit off your server to another server then you need to use ReDirect.

Example:

Redirect 404 http://someothersite.com


By using ErrorDocument 404 http://somesite.com you are creating a load on the machine. If you have enough power in your server you may not notice this but your apache error logs will suffer.

Peace,

JFPDude

camcutie 03-09-2005 01:32 PM

Thnaks JFPDude....... :)

XOXOXO
*Krystal*


All times are GMT -7. The time now is 05:22 AM.

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