fixes #4555 dotCMS uses redirect 301 instead of 302