How to Set Up a WordPress Redirect the Easy Way (3 Steps)

How to Set Up WordPress Redirects Feature

You moved a page, changed a URL, or migrated to a new domain — and now you’re hoping nothing breaks. Here’s the part most guides skip: a missing or messy redirect doesn’t just dump visitors on a dead 404 page. It quietly corrupts your Google Analytics data, too.

When a redirect drops the referrer (the bit of data that tells Analytics where a visitor came from), GA4 can’t attribute that visit. So it files them under “(direct) / none” — the analytics equivalent of a shrug. Your organic, referral, and campaign traffic shrinks on paper, even though your real audience hasn’t changed at all.

We see this constantly when we dig into WordPress sites after a migration: a sudden, unexplained spike in “direct” traffic. Nine times out of ten, it traces back to redirects.

The good news? Setting up a clean WordPress redirect takes about three steps — and confirming it didn’t wreck your tracking takes about two minutes. This guide covers both.

ExactMetrics is the best WordPress Analytics plugin. Get it for free!

What Is a WordPress Redirect?

A redirect is an instruction that tells a web browser a page has moved to a new location. When someone visits the old URL, the redirect quietly sends them to the new one instead — no dead end, no confusion.

The most common type is the 301 redirect, which means “moved permanently.” It tells browsers and search engines that the change is permanent, so Google passes most of the old page’s ranking power to the new URL. A 301 doesn’t expire — it keeps working for as long as you own the domain.

Think of it like mail forwarding. You move house, you file a forwarding request, and your letters follow you to the new address automatically. A 301 does the same thing for your web pages.

Why Redirects Quietly Break Your Analytics (and Inflate “Direct” Traffic)

The obvious reasons to set up a WordPress redirect are the ones every guide mentions: you keep visitors from hitting 404 errors, and you protect the search rankings and backlinks you’ve worked hard to earn. Those matter. But there’s a less obvious cost that almost nobody warns you about — broken redirects poison your analytics data.

Here’s the mechanism. Every visit carries a referrer — a tag that says “this person came from Google,” or “from a link on someone’s blog,” or “from your email campaign.” A clean, single 301 redirect usually passes that referrer straight through. But a few common mistakes strip it away:

  • Redirect chains. When one URL bounces to another, then another (A → B → C), each hop is a chance to lose the referrer and slow the page down. You want a single hop, not a relay race.
  • Cross-domain moves. Sending visitors from an old domain to a new one can drop the original referrer, so GA4 buckets those sessions as direct.
  • Dropped query strings. If a redirect strips the ?utm_source=… tags off your links, your campaign tracking breaks. Paid, email, and social visits show up as direct or unassigned instead of where they really came from.
  • Missing redirects (404s). A page with no redirect doesn’t just frustrate visitors — GA4 logs views on that 404 page, cluttering your reports and hiding the fact that real demand is going nowhere.

The end result is the same in every case: your direct traffic balloons, while your organic, referral, and campaign numbers quietly shrink. You end up making decisions on data that’s flat-out wrong. That’s exactly the kind of “I don’t know what’s really happening on my site” feeling we built ExactMetrics to fix.

Pro Tip: Before any migration or bulk URL change, screenshot your current traffic-source breakdown. A clean “before” snapshot makes a post-redirect direct-traffic spike obvious at a glance.

How to Set Up a WordPress Redirect with AIOSEO

The easiest way to create a redirect in WordPress is with a plugin — no code, no touching server files. We’ll use All in One SEO (AIOSEO), which includes a built-in Redirection Manager. Here’s the whole process in three steps.

Step 1. Install All in One SEO

The Redirection Manager comes with AIOSEO Pro or higher. Once you’ve purchased a plan, you can install it in a couple of minutes:

  1. Open the Downloads tab from your AIOSEO My Account page and download the ZIP file.
  2. In WordPress, go to Plugins » Add New, then click Upload Plugin.
  3. Select the ZIP file, click Install Now, then Activate Plugin.

Downloading the AIOSEO Pro plugin ZIP file from the My Account downloads tab

Upload Plugin button on the WordPress Add Plugins screen

Need a hand? AIOSEO has a full installation tutorial and video that walks through every click.

Activating the AIOSEO Pro plugin in WordPress

Step 2. Create Your New WordPress Page or Post

If you’re changing a URL or title, the cleanest approach is to build the new version first, then point the old URL at it. Say you’re changing “How to Create a Table of Contents in WordPress” to “How to Make a WordPress Table of Contents” with a fresh slug. Here’s how to copy it over:

  1. Open the original page in the WordPress editor.
  2. In the classic editor, switch to the Text tab and copy all of the HTML.
  3. Go to Pages » Add New (or Posts » Add New), switch the new page to the Text tab, and paste the HTML in.
  4. Update the title and the URL slug.
  5. Click Save Draft — don’t publish yet, so search engines don’t index it as brand-new content before the redirect is in place.

Copying page content in the WordPress editor

Editing the URL slug on a new WordPress page

Step 3. Redirect Your Page or Post in WordPress

Now go back to the original page and scroll down to the AIOSEO settings panel. This is where you create the redirect:

  1. Click the Redirects tab.
  2. Confirm the original page’s slug is filled in under Source URL.
  3. Start typing the new page’s title in the Target URL field and select it from the dropdown.
  4. Leave Redirect Type set to 301 Moved Permanently.
  5. Click Add Redirect.

Setting the Source and Target URL for a 301 redirect in the AIOSEO Redirection Manager

Clicking Add Redirect to create a 301 redirect in AIOSEO

Finally, publish your new page. Your redirect is now live — anyone who visits the old URL lands on the new one automatically. That’s it!

Other Ways to Redirect in WordPress with AIOSEO

Single-page redirects are the most common, but two other situations come up a lot — moving your whole site, and cleaning up 404 errors.

How to Move Your Website to a New Domain

Moving an entire site from OldSite.com to NewSite.com while keeping all your pages and structure? AIOSEO can redirect the whole thing at once:

  1. Go to AIOSEO » Redirects and open the Full Site Redirect tab.
  2. Turn on the Relocate Site switch.
  3. Enter your new domain under Relocate to domain and click Save Changes.

Every page now redirects to the matching URL on the new domain — OldSite.com/home becomes NewSite.com/home, and so on. AIOSEO has a detailed full site redirect guide if you want the finer points. Because domain moves are exactly where “direct traffic” spikes tend to appear, this is the moment to be extra careful — and to lean on the right WordPress migration plugins to keep the move clean.

Relocating a WordPress site to a new domain with the AIOSEO Full Site Redirect tool

How to Redirect 404 Errors Automatically

AIOSEO can also catch 404 errors and forward them to a working page automatically:

  1. Open the Redirection Manager and click the Settings tab.
  2. Scroll to Advanced 404 Settings and toggle on both Advanced 404 Settings and Enable default 404 redirect.
  3. Choose a destination (your home page or a custom URL) and click Save Changes.

Use this thoughtfully. A specific 301 to a closely related page almost always serves visitors better than a blanket redirect to your home page — and it keeps your analytics meaningful instead of funneling everything into one bucket.

Enabling automatic 404 error redirects in the AIOSEO Redirection Manager settings

How to Verify Your Redirects in Google Analytics (GA4)

Setting up the redirect is only half the job. The other half is confirming it actually fires — and didn’t quietly break your tracking. Here’s a quick check you can run in a few minutes.

  • Test it live in Realtime. Open the old URL in your browser. You should land on the new page. Then check Reports » Realtime in GA4 — the new page should show up in the active-pages card while you’re on it.
  • Confirm the old page went quiet. In Reports » Engagement » Pages and screens, search the old page path. After the redirect, its new views should drop toward zero. If it keeps logging fresh views, the redirect isn’t firing for everyone.
  • Watch your Direct traffic. In Reports » Acquisition » Traffic acquisition, compare the days before and after your change. A sudden jump in Direct — with matching drops in Organic or Referral — is the classic sign that referrer data is getting stripped.
  • Check that referral traffic survived. In that same report, your backlinks should still show up as Referral, not Direct. If a known referring site vanished, a redirect hop is likely eating the referrer.
  • Rule out redirect chains. Drop the old URL into a free redirect checker (or watch the Network tab in your browser’s developer tools). You want a single 301 hop — not A → B → C. Each extra hop is another chance to lose UTM parameters and add load time.

If GA4’s menus feel like a maze, here’s the shortcut: ExactMetrics surfaces your top traffic sources, referrals, and a real-time view right inside your WordPress dashboard. So instead of clicking through five reports, you can confirm a redirect didn’t tank your tracking in one glance — and spot broken links and 404s before they cost you traffic.

WordPress Redirect Best Practices

A few habits keep your redirects clean and your data trustworthy:

  • Avoid stacking redirects. Don’t point a URL at another redirect. Chains hurt user experience, search rankings, and analytics accuracy all at once.
  • Set up the redirect before you publish the new page. That stops search engines from indexing the new URL as unrelated, brand-new content.
  • Update your sitemap. Remove old URLs so crawlers don’t waste time on pages that no longer exist. (Here’s how to make a WordPress sitemap.)
  • Recheck Analytics a week later. Referrer issues don’t always show up on day one. A quick look at your traffic sources after seven days catches anything you missed.

Frequently Asked Questions

What’s the difference between a 301 and a 302 redirect?

A 301 is permanent and a 302 is temporary. Use a 301 when the move is for good — it passes nearly all of the old page’s ranking power to the new URL. Save 302s for short-term situations, like an A/B test or a page that’s down for maintenance.

Do redirects hurt SEO?

A single, clean 301 redirect protects your SEO — it carries your rankings and backlink value to the new URL. What hurts is redirect chains, broken redirects, and using temporary 302s for permanent moves.

Why does my redirect show up as direct traffic in Google Analytics?

It usually means the redirect is stripping the referrer or your UTM tags. Cross-domain moves, redirect chains, and dropped query strings are the common culprits. When GA4 can’t see where a visit came from, it files it as “(direct) / none.”

Do I need a plugin to set up a WordPress redirect?

No, but a plugin is the easiest and safest route. You can also add redirects by editing your .htaccess file, but one typo there can take your whole site offline — so always back it up first. A plugin like AIOSEO handles it with a few clicks and no code.

How do I check that a redirect is working?

Open the old URL in a browser and confirm you land on the new page. For a deeper check, use a redirect checker to confirm it’s a single 301 hop, then watch your GA4 Realtime and Traffic acquisition reports to make sure tracking still looks right.

Will a redirect slow down my website?

A single 301 adds a tiny, usually unnoticeable delay. The problem is chains — every extra hop adds load time and another chance to drop tracking data. Keep redirects to one hop whenever you can.

How many redirects is too many?

There’s no hard cap on how many redirects your site can have, but any single URL should redirect only once. If a page bounces through two or more redirects to reach its destination, simplify it down to one direct 301.

And that’s it! We hope this guide helped you set up a WordPress redirect the easy way — and just as importantly, confirm it didn’t quietly break your analytics. If you found this helpful, check out these guides next:

Don’t forget to follow us on Twitter and Facebook for more Google Analytics tutorials.

How useful was this post?

Click on the stars to rate

Average rating 0.0/5

Want to Try ExactMetrics for Free?

Enter the URL of Your WordPress website to install ExactMetrics Lite.