|   |   |   | ||||
| Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. | 
|    | 
| 
 | |||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
|  | Thread Tools | 
|  09-27-2004, 10:09 PM | #1 | 
| Confirmed User Join Date: Mar 2004 Location: LOLLIPOP ISLAND =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= 
					Posts: 4,569
				 | 
				
				apache technical question anyone!?
			 Sorry a bit off topic but im in a pinch to find this. How do you pass the broken link in a 404 to a script? Here is an example: ErrorDocument 404 404/404.pl?brokenlink=$LinkITried 
				__________________       | 
|   |           | 
|  09-27-2004, 10:18 PM | #2 | 
| Confirmed User Join Date: Aug 2004 Location: at home! ICQ 199579013 
					Posts: 366
				 | Use REQUEST_URI PHP Code: 
			
				__________________  Promote Lady Sonia and earn 60% on sign-up and 60% on rebills!   ^^ Weekly CCBill Payouts - Hosted Galleries - Promo Content - Free Hosting ^^ ^^ No Cross Sells - No Traffic Leaks - 100% Exclusive Content! ^^ | 
|   |           | 
|  09-27-2004, 10:20 PM | #3 | |
| Registered User Join Date: Mar 2002 Location: Norway 
					Posts: 87
				 | Quote: 
 Code: ErrorDocument 404 /index.php?module=error&code=404 I've seen it behave otherwise on other servers though, where the user plainly gets redirected to the 404 page instead. I assume it's some Apache directive for how to show error documents. 
				__________________  1:287 all November with UnrealBank | |
|   |           | 
|  09-27-2004, 10:22 PM | #4 | |
| Confirmed User Join Date: Mar 2004 Location: LOLLIPOP ISLAND =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= 
					Posts: 4,569
				 | Quote: 
 
				__________________       | |
|   |           | 
|  09-27-2004, 10:24 PM | #5 | |
| Confirmed User Join Date: Mar 2004 Location: LOLLIPOP ISLAND =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= 
					Posts: 4,569
				 | Quote: 
 
				__________________       | |
|   |           | 
|  09-27-2004, 10:32 PM | #6 | 
| Confirmed User Join Date: Aug 2004 Location: at home! ICQ 199579013 
					Posts: 366
				 | Setup a normal 404 page, then request the script in your 404 page with an image tag using the REQUEST_URI 
				__________________  Promote Lady Sonia and earn 60% on sign-up and 60% on rebills!   ^^ Weekly CCBill Payouts - Hosted Galleries - Promo Content - Free Hosting ^^ ^^ No Cross Sells - No Traffic Leaks - 100% Exclusive Content! ^^ | 
|   |           | 
|  09-27-2004, 10:35 PM | #7 | |
| Confirmed User Join Date: Mar 2004 Location: LOLLIPOP ISLAND =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= 
					Posts: 4,569
				 | Quote: 
 there isnt just a fucking variable in apache to pass this? Geez why does this have to be so difficult? ;) 
				__________________       | |
|   |           | 
|  09-27-2004, 10:40 PM | #8 | 
| Confirmed User Join Date: Oct 2002 Location: Germany 
					Posts: 768
				 | You have to edit your httpd.conf and and uncomment or add the ErrorDocument 404 directive. This can be set global or in your virtual section.  ErrorDocument 404 /404.html works as well as a external redirect with a complete URL. (note that in this example 404.html would have to be present in your document root dir.) There should be some example lines in your httpd.conf If you don't have access to your conf files you can also use .htaccess to forward the404 errors 
				__________________ SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60. | 
|   |           | 
|  09-27-2004, 10:41 PM | #9 | |
| Confirmed User Join Date: May 2004 
					Posts: 886
				 | Quote: 
 | |
|   |           | 
|  09-27-2004, 10:46 PM | #10 | 
| Confirmed User Join Date: May 2004 
					Posts: 886
				 | I just realized you're trying to pass a variable to it. The referer will be picked up by the script automatically. If you're using perl as cgi, look into the CGI.pm docs to see how its passed. If its mod-perl, checkout the Apache::Registry docs I think the refering url is also an @ENV variable. $ENV{'HTTP_REFERER'}; Replace the haha shit up top with a shift+[ | 
|   |           | 
|  09-27-2004, 10:48 PM | #11 | |
| Confirmed User Join Date: Jul 2003 Location: United States 
					Posts: 349
				 | Quote: 
 1. Make sure everything is relative. /404/404.pl is a good start. 2. IE will *NOT* show your custom 404 page if your 404 page is less than 10k. You can just fill the damn page with dots. That'll work. 
				__________________ Theodor S. Geisel [ ICQ: 2 0 6 6 1 0 7 ] [ theodor.geisel -at- gmail -d0t- com ] [ PROGRAMMER :: PHP :: MYSQL :: HTML/CSS ] | |
|   |           | 
|  09-27-2004, 10:59 PM | #12 | |
| Confirmed User Join Date: Mar 2004 Location: LOLLIPOP ISLAND =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= 
					Posts: 4,569
				 | Quote: 
 
				__________________       | |
|   |           | 
|  09-27-2004, 11:00 PM | #13 | |
| Confirmed User Join Date: Mar 2004 Location: LOLLIPOP ISLAND =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= 
					Posts: 4,569
				 | Quote: 
 
				__________________       | |
|   |           | 
|  09-27-2004, 11:12 PM | #14 | |
| Confirmed User Join Date: May 2004 
					Posts: 886
				 | Quote: 
 | |
|   |           | 
|  09-28-2004, 12:13 AM | #15 | |
| Confirmed User Join Date: Mar 2004 Location: LOLLIPOP ISLAND =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= 
					Posts: 4,569
				 | Quote: 
 
				__________________       | |
|   |           | 
|  09-28-2004, 12:28 PM | #16 | |
| Confirmed User Join Date: May 2004 
					Posts: 886
				 | Quote: 
 I tested this on one of my servers and it works fine. Double check your perl / apache settings. | |
|   |           |