make search on 404 page secure