Skip to content
Back to all guides

WordPress

How to create 301 redirects in WordPress

Create permanent WordPress redirects, map old pages to relevant replacements and test status codes, loops and query strings before publishing.

The Snappyhost team Updated 2 min read
How to create 301 redirects in WordPress

A 301 is an HTTP response that tells a client a resource has moved permanently. It is a server-side redirect, not an alternative to one. Use it when an old page has a permanent, relevant replacement, including a planned URL change. Google's redirect guidance explains how permanent redirects help it identify the destination as canonical.

Map the old URL to the right destination

List the old paths and their closest replacements. Keep a working URL when its subject has not changed. If a page is removed with no useful replacement, a genuine 404 or 410 can be more appropriate than redirecting everything to the homepage. A redirect should help someone who followed the old link reach the content they expected.

Set up redirects with a WordPress plugin

Use a maintained redirect-management tool compatible with your installation. Add an exact source path and its destination, select a permanent redirect, and test it while logged out. Check whether the tool matches query strings, trailing slashes or regular expressions before enabling broad rules. Back up the configuration first.

Creating a redirect in .htaccess

On a compatible Apache setup, a simple exact-path redirect can use Redirect 301 /old-page https://example.com/new-page. Replace both example paths with the actual mapping. Hosting configuration matters: ask your provider which mechanism applies if you use a different web server or managed redirect layer. Do not add several competing rules for the same source.

Test the response and the destination

  • Confirm that the source returns a 301 or 308 and the intended destination returns 200.
  • Check HTTP, HTTPS and slash variants for loops or unnecessary hops.
  • Verify that campaign parameters survive when the destination needs them.
  • Update internal links, canonical tags and the sitemap to use the final URL.
  • Retest forms and application routes if the redirect pattern could match them.

Redirects during a hosting move

Changing hosting alone does not require renaming your pages. Preserve the domain and paths where possible and carry existing redirect rules to the destination. The hosting migration checklist covers the surrounding DNS and data checks. If you are moving to our WordPress hosting, include your old redirect list when arranging the migration.

Hosting that keeps up

Fast UK WordPress hosting, managed for you.

LiteSpeed with LSCache, NVMe SSD, staging and daily backups, with free migration from your current host.

Read enough? Let us run the hosting for you.

Move to your own fast, isolated UK hosting with free zero-downtime migration and a real support team behind it.

Rated Excellent by UK customers

Rated Excellent on Trustpilot Excellent · 4.8 out of 5 · 84 reviews on Trustpilot

Our agency manages a number of sites for clients, so we need an efficient, easy-to-use platform. The team have been super helpful through set-up and migrations, all for an unbeatable price.

Josh Trustpilot

Super helpful team and always provide a five-star service. Can't recommend using them enough.

Riley Williams Trustpilot

I must have tried every hosting company out there. Snappy Host has delivered on their promise with excellent speeds, excellent uptime and excellent UK support. I highly recommend them 100%.

Ian Barber Trustpilot

Snappyhost are first rate. Their service is both professional and yet also personable. You know you are talking to people who know what they are doing, and they have always been on hand when we have needed advice.

Castle Steel Buildings Trustpilot

Perfect services. Reliable. Top-notch customer support.

Miroslav Trustpilot

I moved all my services to SnappyHost after a terrible experience with UK2. I can't fault them: great service, very reliable, good prices. Highly recommended.

MarkZ Trustpilot

Snappy are great! They always fix our problems straightaway and without any fuss!

Anne Trustpilot

Moved to Snappy Host from Heart, and it was the best decision I have ever made! Really supportive and helpful team who helped me get my emails set up for all my customers with no hassle. 10/10.

Duncan Matthews Trustpilot

SnappyHost support is consistently great. I have used them to host my website, which has grown substantially over the years. My site is really fast thanks to the tools they installed, and whenever there is an issue they sort it out. Amazing service.

The Professional Traveller Trustpilot

Snappy Host provide hosting with fantastic and friendly support. The range of services is great and their support is quick and helpful. I have many sites with Snappy.

Simon Clay Trustpilot

I have been a customer for several years. I recently had challenges putting my website live and was helped by Tom, whose professionalism and dedication exceeded my expectations. Snappy Host sets a high standard for excellence.

PDA Trustpilot

Absolutely excellent company that goes above and beyond, and have always helped me virtually instantly when I have needed them.

DJ Eclypse Trustpilot

I have found the team at Snappy Host to be very helpful. A quick chat message or email and they are on the ball resolving any issues. No long, complicated process to reach them.

Segilola Salami Trustpilot

Fantastic support. Great speed at unbelievable value.

Ron Finnegan Trustpilot

Snappy Host is terrific. Tom, Luke and Mark all went above and beyond to help me, and fixed an issue I had had for over two years. If you want fast, helpful service as well as lightning-fast websites, look no further.

Simon M Trustpilot

I can't rate the guys at Snappy Host highly enough. They go above and beyond to help, and I couldn't run my websites without them. Highly rated.

Customerroy charles Trustpilot