fix redirect bug when no final shash on homepage, pretty 404 page