redirects: make directories if needed