swap status code from 302 to 301

change redirect code to 301 (moved permanently).