I had a dream about this last night. How pitiful is that? Anyway, this should make WPG2 invulnerable to WP's handle_404 while remaining embeddable: require wp-config.php instead of wp-blog-header.php then at line 60 call wp()