In Wordpress, I have to call my very own page when you will find no pages available. This will happen before striking a 404 page. How do i personalize Wordpress to possess this behavior?

Thanks

Which has nothing related to Wordpress or Django. -)

<?php
   header("Status: 301 Moved Permanently");
   header("Location:/");
?>

Input the URL you'd rather be relocate for "Location:". During my situation it'll relocate towards the root-page.

EDIT: You may make your personal template then produce a page and hang your personal template as page template or simple produce a static html page. In the two cases you've then to create "Location:" towards the Link to your 404-page.