Thread
:
How can you redirect ALL 404 pages on a server to a single php file?
View Single Post
06-05-2007, 03:13 AM
grumpy
Too lazy to set a custom title
Join Date: Jan 2002
Location: Holland
Posts: 9,870
Quote:
Originally Posted by
BucksMania
add this to a .htacess file and place it as high as possible in the dir structure
ErrorDocument 404
http://domain.com/yourscript.php
setting the script like that will loose the referal url, instead do it like thise
ErrorDocument 404 /yourscript.php
and put the script in the main dir
__________________
Don't let greediness blur your vision
|
You gotta let some shit slide
icq - 441-456-888
grumpy
View Public Profile
Visit grumpy's homepage!
Find More Posts by grumpy