Results 1 to 2 of 2
Thread: .htaccess help
02-23-2003, 04:02 PM #1DmXGuest
I have a .htaccess as follows:
ErrorDocument 404 http://www.xxx.com/stuff/My404.php
When users click on a link such as /stuff/page5.html for example, when page5.html does not exist, i need to redirect to MyScript.php using the .htaccess (this works fine) but I need to hold on to the page5.html so I can make a better 404 page (and so i can be nitified of any 404 in order to fix them).
Using $HTTP_REFERER returns the original page that the user clicked on, and $REQUEST_URI returns "/stuff/My404.php".
I think what I need to do is somehow redirect to My404.php?BrokenLink=page5.html in the .htaccess but i'm not sure how to do this.
All help is much appreciated
02-23-2003, 10:38 PM #2colorfulGuest
As paint suggested, put following line in .htaccess
Redirect wahter.html whatever.html