Example of how you can change the redirect status code using a 301 instead of a 302.