How can I set up a proper 301 redirect with an htaccess file?
Last updated: 02/07/2012
When moving pages around on your website, it's important to set up redirects to the new pages, so that search engines, and people with bookmarks / links to those pages don't get lost.
The recommendation is to use a "301" redirect - that's a status saying the page has moved permanently to a new location.
To set up redirections, use an .htaccess file, set up in your document root. Here's the line you need (one for each page) :