SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    psycho
    Join Date
    May 2000
    Location
    London
    Posts
    283
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK.

    I have htaccess redirect 404's to notfound.php

    In it, i echo $REDIRECT_URL, which according to the Apache manual and the PHP manual should echo the offending page. But it seems to turn up nothing.

    I am using php3

    my code is :

    Code:
    <?php
    
    
    echo("$REDIRECT_URL");
    
    mail("funky_friars@hotmail.com", "404 error on site", "$REDIRECT_URL");
    
    
    ?>
    whya noa worka ?

    [Edited by James Smith on 08-29-2000 at 07:20 PM]

  2. #2
    Idea Developer
    Join Date
    Sep 2000
    Location
    Bethlehem, PA
    Posts
    521
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you never say what redirect_url is, the variable = 0 so it send you 0 and redirects you to the directory.

    Also you might want it ot email you the site from where the person reached this site
    Professional PHP programing / Hosting
    aim: downtoi3iz icq: 74637813


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •