Sometimes 301 redirect may not work, it is caused due to many reasons. One of the reasons is the wrong .htaccess code command. You can generate 301 Redirect Code htaccess files freely from zeewaan SEO Tools.