![]() |
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* |
htaccess
|
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 |
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 ! |
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 :) |
*** 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. |
Quote:
|
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* |
Quote:
XOXOXO *Krystal* |
Quote:
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 |
Quote:
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 |
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* |
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* |
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 |
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