Have you ever found that you have more than one page of information that is almost exactly like another? Maybe you’ve redesigned your site and orphaned a couple of pages which then were rebuilt with the exact same content under new file names.
Using a 301 Redirect will help you keep the value of the old “orphaned” pages and redirect that value to the new pages that have replaced them. * Remember, duplicate content is a huge no-no to the search engines and will prevent your site from attaining good keyword ranking.
Depending on the server platform your website is hosted on and the programming language used to create your site, you have different options for setting up 301 redirects.
Since our clients are hosted on Apache/NGINX servers, we'll address the most common method.
.htaccess 301 Redirect
This is the most common redirect method used on Linux servers. Simply download (most common) or create a file called .htaccess. Add the line below to the text file, save upload to the root directory of your site and you’re done.
Redirect an old page to a new page
redirect 301 /old/old.html http://www.yourdomain.com/new.html
Redirect an old page to a new folder/category:
redirect 301 /old/old.html http://www.yourdomain.com/folder/