function redirect_404s() { if(is_404()) { wp_redirect(home_url(), '301'); } } add_action('wp_enqueue_scripts', 'redirect_404s'); CAMERA - UBK 92 CAMERA - UBK 92