How to: Use 301 Redirects When You Launch a New Website

17th May 2018

When you go live with a content reshuffle or complete redevelopment, chances are that not all of your pages will remain in their old locations. But it’s those old locations that will still be indexed in Google, linked from other sites, and possibly in your visitor’s bookmarks. If the addresses no longer exist, your users will be confronted with a 404 error page, and Google will start removing them from its index.

An example:

I’ve just launched a new site for a client whose previous website was all built in static HTML pages. That’s just been replaced with a WordPress website, and every single page has a different address. /about.htm has become /about-us, /contact.htm has become /contact etc. They have around 37 pages indexed in Google, and only the home page is in the same place it was half an hour ago.

The solution: 301 redirects

301 redirects indicate a page has moved permanently, so that visitors get taken straight to the replacement page and Google knows to update its records.

How to implement 301 redirects

If you’re in WordPress then there are plugins, like Yoast’s SEO Premium, that will help you do this from the dashboard. I prefer the direct route though. If you’re on an Apache server and have access to the htaccess file, you can simply open it and add your redirects there. They follow a very simple format, one per line:

You might find that there’s already some stuff in your htaccess file, which you don’t want to tamper with. If it’s a WordPress site you’ve got, it’ll probably look something like this:

You can simply add your 301 redirects above or below this, and for good housekeeping bookend it with something like #BEGIN 301 Redirects and #END 301 Redirects. Once you’re sure you’ve redirected all the old pages to the new, you can save it and test they’re all working.

If you want to know what pages Google is indexing, you can go to search and enter

1 Comment

  • Laurence Caro

    22nd June 2018 at 10:06 am

    Hi Jo,

    Hope all is well! I like reading your blog from time to time ๐Ÿ™‚ We just pushed a site live and had to do 500+ 301 redirects this way as the client has a funny server set up.

    We used Screaming Frog to crawl the old site, a great piece of software which I think is developed in Oxfordshire! ๐Ÿ˜€ Worth a look if you haven’t used that before.




What our customers say:

I would highly recommend Hut Six Digital for your website implementation. Jo has been fantastic to work with and has exceptional knowledge in her field. She is friendly, reliable and professional, which has resulted in our fantastic new website launch. Her training was clear and concise, and I know she will be on the end of the phone or email should I need her for a little refresh. She has enabled us to take full control of our new website, which was something other companies have been unable to offer. Excellent value for money too!

Christina Canning (SMS Alarms Ltd, Thatcham)

Jo has been personable and efficient in setting up my website. She did a great job of understanding what I wanted and providing guidance from her wealth of experience. She has explained things in a non-technical way and has been very responsive, patient and flexible in working with me. In short, Jo is great value for money and easy to work with.

Vanessa Rhone (Venus Works, Oxford)

Excellent, efficient service from Jo. Highly recommend.

Xan Rice (Journalist, Oxford)

I am not exactly a technophobe but due to previous experiences of pressing buttons that I have no business pressing I have shied away from doing thing to update or improve my site. I have called on Jo Cox’s expertise several times and she is always quick, efficient and gets you back on track whilst also calming you down. I can honestly say that there is no one else I would call on in an emergency to sort out problems with my website. I have never had a bad experience with Jo’s services or with Jo as the service provider.

Lisa Bentley (Writer, Liverpool)

Jo has been amazing. Through 1-2-1 training sessions she has helped me to make significant improvements to my website functionality. This has not only been cost effective but it also has empowered me to use the skills that I have gained to edit my website myself in the future. She has simplified what I thought would be tricky tasks. I will definitely continue to work with her in the future and I couldn’t recommend her highly enough.

Felicity Wood (Yoga Instructor, Bicester)

Jo took my simple brief outline of what I wanted and turned it into everything I wanted and more. Jo was very professional, efficient and she was patient and understanding with the fact that I was not knowledgeable about building websites or whatโ€™s involved. By the end of it Jo had given me and my team a training session around how to manage the website. I would highly recommend her!

Sharon Mulholland (Sandcastle Mortgages, Kidlington)

Jo was completely fantastic! I’d been struggling to make a WordPress blog design work and was completely stumped. I made an enquiry to Jo about some help, and she replied within 24 hours. It was easy to agree on a price for the things that needed to be done, and she had fixed everything within 48 hours of the original enquiry. I had thought my problem was too small for someone to help with it, but I was pleasantly surprised that Jo was happy to sort out the small issues with my site for an extremely reasonable fee. Throughout the process, Jo was efficient, effective and stayed in regular communication. She answered all of my questions, even the really idiotic ones, and nothing was too much trouble. The entire experience was great and I would recommend her in a heartbeat to anyone who needs help with a website project – big or small. She is, in short, superb at what she does.

Imogen Goold (Blogger, Oxfordshire)

I wish I had found Jo earlier. We wanted to progress from making simple text edits to getting more out of the CMS. After a very enjoyable training session, we can now design new pages and keep the website organised. Excellent.

Margaret Hildreth (JP Hildreth Ltd, High Wycombe)