body, true); $username = $userd['user_name']; switch ($type) { case 'comment': header("HTTP/1.0 301 Moved Permanently"); header("Location: http://${username}.pixnet.net/blog/comments/feed"); break; default: header("HTTP/1.0 301 Moved Permanently"); header("Location: http://${username}.pixnet.net/blog/feed/${type}"); break; } exit; } } header("HTTP/1.0 404 Not Found"); ?>