Use a 301 redirect when an old WordPress URL with query parameters is permanently replaced by a cleaner URL, because Google treats 301 as a permanent move [source: Google]. For WordPress, keep it simple with the 301 Redirects plugin. It is built for this exact kind of “old link, new home” cleanup.

TLDR: Install the 301 Redirects plugin, add the old URL path with its query string, then point it to the new clean URL. Example: redirect /sale/?utm_source=oldnewsletter to /sale/. If analytics shows 430 visits a month hitting that old campaign URL, a redirect can save those clicks instead of wasting them. Expect fewer 404s, cleaner reports, and less head scratching.

What counts as an old query parameter?

A query parameter is the bit after the question mark in a URL.

For example:

  • /pricing/?ref=oldpartner
  • /shop/?utm_campaign=spring2022
  • /blog/post-name/?fbclid=abc123
  • /landing-page/?coupon=OLD10

These links often come from ads, email tools, affiliates, social posts, or ancient spreadsheets that nobody wants to open again. It drives me a bit nuts that one old newsletter can keep sending messy URLs for years. But that is why redirects exist.

Step 1: Install the plugin

  1. Log in to your WordPress admin area.
  2. Go to Plugins > Add New.
  3. Search for 301 Redirects.
  4. Find the plugin named 301 Redirects – Easy Redirect Manager.
  5. Click Install Now.
  6. Click Activate.

You can also view it on WordPress.org here: 301 Redirects plugin.

Once active, look for the redirect settings in your WordPress admin menu. The screen is simple. That is good. Nobody needs a control panel that feels like an airplane cockpit.

Step 2: Pick the old URL

Now find the exact old URL you want to fix.

Say users still visit this:

https://example.com/product/?ref=oldad

And you want them sent here:

https://example.com/product/

In the redirect rule, use the old path and query string:

/product/?ref=oldad

Then set the new target as:

/product/

Keep the old URL exact. Query parameters are picky. A small typo can break the match. A missing question mark can make you stare at the screen for 20 minutes. Ask me how I know.

Step 3: Add the 301 redirect

Inside the plugin, create a new redirect rule.

  • Redirect From: /product/?ref=oldad
  • Redirect To: /product/
  • Redirect Type: 301 Permanent

Save the rule.

That is the main job. Old query URL in. Clean URL out. Tiny rule. Big relief.

Step 4: Test it like a normal visitor

Open a private browser window. Paste the old URL.

If everything works, the browser should land on the new page.

Test this:

https://example.com/product/?ref=oldad

It should become:

https://example.com/product/

If it does not work, check these things:

  • Did you include the full query string?
  • Did you use ? before the parameter?
  • Did you spell the parameter value correctly?
  • Did you clear any cache plugin?
  • Did your browser store an old redirect?

Honestly, caching can make this feel broken when it is not. Clear your site cache. Then try again in a private window.

Step 5: Use the logs for more cleanup

Old query URLs usually travel in packs. You fix one. Then five more pop up.

This is where WP 301 Redirects can help if your site has lots of old links, campaign URLs, and 404 hits. It gives you stronger tools for watching bad URLs and fixing them faster.

For example, you may spot these in your logs:

  • /sale/?utm_source=2019email
  • /sale/?utm_source=oldblast
  • /sale/?coupon=expired

All three may need to point to:

/sale/

This keeps visitors moving. It also keeps your analytics from turning into soup.

Common examples

Old affiliate link:

/hosting/?ref=john2020 → /hosting/

Old email campaign:

/black-friday/?utm_campaign=bf2021 → /deals/

Old coupon page:

/checkout/?coupon=SUMMER15 → /coupons/

Old product filter:

/shoes/?color=red → /shoes/

Person holding an analytics report

When should you not redirect?

Do not redirect every weird URL just because it exists.

Redirect when the old URL had traffic, backlinks, sales value, or a clear replacement. If a junk bot created a strange query URL once, ignore it. Your redirect list should stay clean.

A good rule is simple. If real people used it, fix it. If only bots touched it, skip it.

Quick checklist

  • Install 301 Redirects.
  • Copy the old path with the query string.
  • Paste the clean destination URL.
  • Set the type to 301 Permanent.
  • Save the rule.
  • Test in a private browser window.
  • Check logs for more old query URLs.

The short version: old query URLs do not have to haunt your WordPress site forever. Add clean 301 rules with the 301 Redirects plugin. Test each one. Then move on with your day.