Fix Page Not Found and rewrites