|
|
|
||||
|
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 |
|
|
#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
__________________
|
|
|
|
|
|
#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! ^^ |
|
|
|
|
|
#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 |
|
|
|
|
|
|
#4 | |
|
Confirmed User
Join Date: Mar 2004
Location: LOLLIPOP ISLAND =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-=
Posts: 4,569
|
Quote:
__________________
|
|
|
|
|
|
|
#5 | |
|
Confirmed User
Join Date: Mar 2004
Location: LOLLIPOP ISLAND =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-=
Posts: 4,569
|
Quote:
__________________
|
|
|
|
|
|
|
#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! ^^ |
|
|
|
|
|
#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? ;)
__________________
|
|
|
|
|
|
|
#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. |
|
|
|
|
|
#9 | |
|
Confirmed User
Join Date: May 2004
Posts: 886
|
Quote:
|
|
|
|
|
|
|
#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+[ |
|
|
|
|
|
#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 ] |
|
|
|
|
|
|
#12 | |
|
Confirmed User
Join Date: Mar 2004
Location: LOLLIPOP ISLAND =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-=
Posts: 4,569
|
Quote:
__________________
|
|
|
|
|
|
|
#13 | |
|
Confirmed User
Join Date: Mar 2004
Location: LOLLIPOP ISLAND =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-=
Posts: 4,569
|
Quote:
__________________
|
|
|
|
|
|
|
#14 | |
|
Confirmed User
Join Date: May 2004
Posts: 886
|
Quote:
|
|
|
|
|
|
|
#15 | |
|
Confirmed User
Join Date: Mar 2004
Location: LOLLIPOP ISLAND =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-=
Posts: 4,569
|
Quote:
__________________
|
|
|
|
|
|
|
#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. |
|
|
|
|