You can't redirect POST requests with 301 or 302, only 307. Check what your provider is doing. This isn't a programming question so would probably be better off on Server Fault. See also softwareengineering.stackexchange.com/questions/99894/… — miken32 41 secs ago