How do I redirect 404 traffic?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sweetjimmy
    Banned
    • Jan 2001
    • 777

    #1

    How do I redirect 404 traffic?

    thats my question.
  • Floss For Life
    Confirmed User
    • Feb 2001
    • 161

    #2
    httpd.conf.. or .htaccess

    ICQ : 112626888

    Comment

    • RedShoe
      赤い靴 call me 202-456-1111
      • Feb 2001
      • 14831

      #3
      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

      SPECIALTY COSTUMES • PROPS • FX
      Superheroes • Monsters • Robots
      PM for details


      For any manufacturing needs. Adult or otherwise.

      aka BonsHigh on Insta
      Bonsai weed plants


      Comment

      • Theo
        HAL 9000
        • May 2001
        • 34515

        #4
        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

        Comment

        • Theo
          HAL 9000
          • May 2001
          • 34515

          #5
          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

          Comment

          • mr. mpg
            Confirmed User
            • Feb 2001
            • 140

            #6
            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

            Comment

            • wiZd0m
              Confirmed User
              • Feb 2001
              • 1526

              #7
              SweetJimmy, since when do you have trafffic of Homosexual Lovin to redirect? HaHaHaHa ...

              Just Kidding Man,

              ------------------
              wiZd0m
              Fortune Pussy Adult Links
              ----------
              wiZd0m

              Comment

              • RedShoe
                赤い靴 call me 202-456-1111
                • Feb 2001
                • 14831

                #8
                May be overkill at this point, but still might be worth a look:
                http://www.theadultwebmaster.com/art...htaccess.phtml

                SPECIALTY COSTUMES • PROPS • FX
                Superheroes • Monsters • Robots
                PM for details


                For any manufacturing needs. Adult or otherwise.

                aka BonsHigh on Insta
                Bonsai weed plants


                Comment

                • Gemini
                  Confirmed User
                  • Jan 2001
                  • 7183

                  #9
                  meta http-equiv="REFRESH"
                  CONTENT="1; url=http://www.whaever.com/whateverpage.html"

                  with the <> brackets is the easiest quickest way.

                  <center><a target="_blank" href="http://dev.datedollars.com/index.php?s=signup&amp;aid=535&amp;cfg=aac"><img border="0" src="http://216.130.172.224/gfy/gsig.gif" width="490" height="100"></a><br><a href="http://dev.datedollars.com/index.php?s=signup&amp;aid=535&amp;cfg=aac" target="_blank"><b><font face="Arial"><font color="#FF99FF"> Buy me away from Slavedriver Smokey!<br>It's May Sig Sweeps!<font></b></center>

                  Comment

                  • Paul Markham
                    Too old to care
                    • Jun 2001
                    • 52942

                    #10
                    Lensman is a hypocrite


                    The Revive Juicybone Now Coalition



                    Blowout deal. 880 videos, 2,400 image sets, plus many RAW videos. $500.
                    PM me for a deal. Skype Paulmarkham70

                    Comment

                    Working...