Basic 301 redirect for a single page

301 redirecting old page to new page using .htaccess

301 redirect to redirect a single page on your website
Simply enter the following code into your .htaccess file (changing the addresses in the examples below as needed) and save the changes. If there are several individual pages which have moved, just repeat as neccesary. Not sure how to access or change or .htaccess file. Read our .htaccess guide here.

redirect 301 /oldfolder/oldpage.htm http://www.yourdomain.com/newpage.htm

Example: If the old file used to live at http://example.com/oldfile.htm, and the new page is located at http://example.com/newfile.htm, your .htaccess code would look like this:

redirect 301 /oldfile.htm http://www.example.com/newfile.htm

Benefits of redirecting traffic using a single page 301 redirect

  • Don't lose any website traffic. Using the single page 301 redirect described above, users will seamlessly be redirected through to the new page address, rather than seeing an ugly 404 error page, or having to go looking around on your page for the content - or more than likely, leaving your site for a competitors!
  • Keep the Google bot happy. Google quickly removes pages from it's index which return an error 404 (page not found), even if they have a high number of inbound links pointing to them. It's therefore really important to implement a proper 301 redirect for any pages which change URL, so that the Google bot has an easy time understanding that the page has permanently moved location. Google will then update it's index to point through specifically to the new page, and any inbound links and other signals will be attributed to the new page (usually allowing you to keep high rankings in Google search results provided all the content is still on the page, and that it's still properly optimised on-page (i.e. meta title tags, description, text copy on the page etc)).