added CDATA and changed redirect code form 302 to 301