For all you developers out there building WordPress plugins or coding in the core of WordPress, this is the “proper” way of doing a 301 redirect in WordPress:
Easy isn’t it? Now go off and USE IT. I’m seeing way too much people who forget to add the “
,301“, and stick with the default, which is a 302….