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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-21-2001, 07:27 PM   #1
sweetjimmy
Banned
 
Join Date: Jan 2001
Location: Harlem, NY, U.S.A
Posts: 777
How do I redirect 404 traffic?

thats my question.
sweetjimmy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-21-2001, 07:42 PM   #2
Floss For Life
Confirmed User
 
Join Date: Feb 2001
Location: Queens Bridge, NY
Posts: 161
httpd.conf.. or .htaccess
Floss For Life is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-21-2001, 08:18 PM   #3
RedShoe
赤い靴 call me 202-456-1111
 
RedShoe's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: The Valley
Posts: 14,831
I think you can add this to the very bottom of your .htaccess page:


RewriteRule /* http://WWW.SPONSOR.COM/ [R,L]

But look into it yourself. Test it.



------------------
...:::End Of Line:::...
------------------
* Rev. RedShoe
* [email protected]
* uSexFan.com
* LeeannOnline.com
* ICQ : 114683191
RedShoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-21-2001, 08:19 PM   #4
Theo
HAL 9000
 
Industry Role:
Join Date: May 2001
Posts: 34,515
look what i do and it's quite simple
.htaccesss
-----start--------------------
ErrorDocument 401 /redir.php?401
ErrorDocument 403 /redir.php?403
ErrorDocument 404 /redir.php?404
ErrorDocument 500 /redir.php?500
----------end---------------

now the redir.php file is the following:


<?php

$DATA_FILE = "redirect.php";
$home = "http://www.yourdomain.com";

// do not edit this area
// ----------------------------------------------------------
if (strlen($QUERY_STRING) > 1) {
if (file_exists($DATA_FILE)) {
$fp = fopen("$DATA_FILE", "a");
flock($fp, 1);
$count = $QUERY_STRING;
$ip = $REMOTE_ADDR;
$from = " from ";
$today = gmdate("F j, Y, g:i:s a");
$space = " -- ";
$time = mktime();
$newline = "
";
fseek($fp,0);
fputs($fp, $today);
fputs($fp, $space);
fputs($fp, $count);
fputs($fp, $space);
fputs($fp, $from);
fputs($fp, $ip);
fputs($fp, $newline);
flock($fp, 3);
fclose($fp);
} else {
echo "Can't find file, check '\$file'
";
}

// add custom queries, ie: http://blah.com/redir.php?yourdomain

if ($QUERY_STRING == "401") { $url = "http://www.sponsor.com"; }

else if ($QUERY_STRING == "402") { $url = "http://www.sponsor.com"; }

else if ($QUERY_STRING == "403") { $url = "http://www.sponsor.com"; }

else if ($QUERY_STRING == "404") { $url = "http://www.sponsor.com"; }

else if ($QUERY_STRING == "500") { $url = "http://www.sponsor.com"; }
// Do not edit below
else { $url = $QUERY_STRING; }
}
else {
$url = $home;
}
header("Location: $url");
echo "redirecting...";
?>

you redirect the user depending the situation and you keep the data on redirect.php - be sure that the redirect.php has the right file permissions.



------------------
Great Money Makers! Top Sponsors
Theo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-21-2001, 08:28 PM   #5
Theo
HAL 9000
 
Industry Role:
Join Date: May 2001
Posts: 34,515
also you can use the redir.php to keep your affiliate codes
for example 1 might be kara's adult playground and when you can call it from ever you want by linking to www.yourdomain.com/redir.php?1


------------------
Great Money Makers! Top Sponsors
Theo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-21-2001, 08:39 PM   #6
mr. mpg
Confirmed User
 
Join Date: Mar 2001
Posts: 140
Just add this to your .htaccess file

ErrorDocument 404 http://www.yoursite.com/404.html

------------------
Webmasters... Need free gallery content?
Tons of quality pics & videos! Now with full FTP!
XXXFreeHosting
mr. mpg is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-21-2001, 09:57 PM   #7
wiZd0m
Confirmed User
 
Join Date: Feb 2001
Location: Montreal
Posts: 1,526
SweetJimmy, since when do you have trafffic of Homosexual Lovin to redirect? HaHaHaHa ...

Just Kidding Man,

------------------
wiZd0m
Fortune Pussy Adult Links
wiZd0m is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-22-2001, 12:54 AM   #8
RedShoe
赤い靴 call me 202-456-1111
 
RedShoe's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: The Valley
Posts: 14,831
May be overkill at this point, but still might be worth a look:
http://www.theadultwebmaster.com/art...htaccess.phtml
RedShoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-22-2001, 12:14 PM   #9
Gemini
Confirmed User
 
Join Date: Jan 2001
Location: o-HI-o
Posts: 7,183
meta http-equiv="REFRESH"
CONTENT="1; url=http://www.whaever.com/whateverpage.html"

with the <> brackets is the easiest quickest way.

Gemini is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2003, 01:03 AM   #10
Paul Markham
Too old to care
 
Paul Markham's Avatar
 
Industry Role:
Join Date: Jun 2001
Location: On the sofa, watching TV or doing my jigsaws.
Posts: 52,943
Lensman is a hypocrite


The Revive Juicybone Now Coalition
Paul Markham is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.