404 sayfa yapımızda

{php}

header("Location:http://siteadresi.com/");

{/php}
yönlendirme kodunu kullanıyoruz.