code to create namespace redirect file