View Single Post
Old 12-14-2008, 10:07 PM  
NickSunshine
Confirmed User
 
NickSunshine's Avatar
 
Join Date: Mar 2006
Posts: 1,196
from adx-
Quote:
Originally Posted by NickSunshine View Post
i dont use wordpress, and have not tried this, but i found this at wordpress, and took a stab at it anyway.

hope it works :tup:

Creating an Error 404 Page WordPress Codex

right before this:
Code:
// begin the output buffer to send headers and resonse
ob_start();
@header("HTTP/1.1 $AA_STATUS_CODE $AA_REASON_PHRASE",1);
@header("Status: $AA_STATUS_CODE $AA_REASON_PHRASE",1);
put this:
Code:
if($AA_STATUS_CODE == '404'){
  header("Location: http://path.to/whatever");
}
__________________
NickSunshine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote