Optimized redirect from not existing pages to 404