How to Change WordPress Permalinks Without Losing Traffic

Change WordPress permalinks to Post name without losing traffic. Get the exact 301 redirect rule for your old structure, plus Google's one-year redirect rule.

Share this post
7 min read

Last updated December 3, 2026

To change WordPress permalinks safely, back up first, then go to Settings, Permalinks, pick Post name and click Save Changes.

Right after that, add 301 redirects from every old address to its new one. Google says to keep them generally at least a year.

Key Takeaways

  • Changing the structure changes the address of every post at once.
  • Old links break unless you add permanent 301 redirects.
  • Day and name or Month and name can be fixed with one regex rule.
  • Keep redirects in place for at least a year, as Google advises.
  • Update internal links and resubmit your sitemap after the change.

Permalink change redirect finder

Answer two questions. The tool gives the safe order and the exact redirect rule for your old structure.

Digieh tool. Setting names checked against WordPress core on December 3, 2026. Test every rule on your own site.

New site? If your site has no posts yet, just pick Post name and save. You only need redirects when old links already exist.

What Are WordPress Permalinks?

A permalink is the permanent web address of a post or page. WordPress builds it from the structure you pick in settings.

SettingExample address
Plainexample.com/?p=123
Day and nameexample.com/2026/12/03/sample-post/
Month and nameexample.com/2026/12/sample-post/
Numericexample.com/archives/123
Post nameexample.com/sample-post/
Custom StructureAny mix of tags you choose

Source: WordPress Permalinks screen documentation, read December 3, 2026. Example addresses are illustrations.

WordPress itself notes that including the post name makes links easy to understand. That is why most sites use Post name.

5 of 6Digieh counted the built-in permalink settings. Five of the six add a date or a number, or leave out the post name.

Should You Change Your Permalinks?

Change them only when the benefit is clear. Every change creates work and some short-term risk.

  • Good reason: your links use dates or numbers and you want short, clear addresses.
  • Good reason: the site is new and has few backlinks.
  • Weak reason: you just prefer a different look on an old, well-ranked site.
  • Not this guide: changing one post slug. WordPress handles single slug edits differently.

If you only need to fix broken links, read our guide to WordPress 404 errors on posts first. A simple re-save often fixes them.

How Do You Change the Permalink Structure?

Follow these steps in order. The tool above adds the steps for your old structure.

  1. Make a full backup. See how to back up a WordPress site free.
  2. For a large site, test on a staging copy first.
  3. Go to Settings, then Permalinks.
  4. Under Permalink structure, choose Post name.
  5. Click Save Changes. WordPress says the new setting takes effect only after you click it.
  6. Add redirects right away, as shown below.
Try this today. Before you change anything, write down three old post addresses. You will use them to test the redirects.

How Do You Redirect Old Permalinks?

A redirect sends visitors and search engines from the old address to the new one. Google recommends a permanent server-side redirect whenever possible.

Codes 301 and 308 tell Google a page has moved for good. Google then treats the new address as the main one.

Source: Google Search Central, redirects, read December 3, 2026.

Use the free Redirection plugin

Redirection is free, with no premium version, and has more than 2 million active installs. It can also log 404 errors.

  1. Go to Plugins, then Add New Plugin, and install Redirection.
  2. Finish the short setup wizard.
  3. Add a new redirect and paste the source and target from the table below.
  4. Tick the Regex option, set the type to 301, and save.

Source: Redirection plugin page, read December 3, 2026.

Old settingSource (Regex on)Target
Day and name^/\d{4}/\d{2}/\d{2}/([^/]+)/?$/$1/
Month and name^/\d{4}/\d{2}/(?!\d+/?$)([^/]+)/?$/$1/
PlainUsually not neededWordPress finds the post by its number
NumericNo single ruleMap each post by hand

Source: rules written and tested by Digieh for the Redirection plugin on December 3, 2026. Test them on your own site first.

The Month and name rule skips day archive pages such as /2026/12/03/. Without that check, a day archive would redirect to a wrong address. We tested both rules against post, page and archive addresses before publishing.

Check pages too. Regex rules can catch page addresses that look like dates. Open a few pages after you add a rule.

Free updates

Join the Digieh list

Be the first to know when our weekly brief launches.

No spam. Unsubscribe anytime. Read our Privacy Policy.

What About Category and Tag Links?

The same screen has two optional fields, Category base and Tag base. They change the word in archive addresses, such as /category/ or /tag/.

Changing them moves every category or tag archive to a new address. Treat that like a structure change and add redirects for those archives too.

Some custom structures include the category. In that case, WordPress shows only one category per post in the link, the lowest numbered one.

Most small sites leave both fields empty. That keeps archive links stable and avoids a second round of redirects.

Planning several changes? Do them all in one go. One move with one set of redirects is easier to manage than three small ones spread over months.

How Long Should You Keep the Redirects?

Google says to keep redirects for as long as possible, generally at least one year. Removing them early can bring back broken links.

Google also advises updating as many internal links as possible and submitting your new sitemap.

Source: Google Search Central, site moves with address changes, read December 3, 2026.

  • Update menus, buttons and links inside posts to the new addresses.
  • Submit your sitemap again in Search Console.
  • Ask sites that link to you often to update their links.

What If Your Server Does Not Save the Change?

WordPress writes new link rules to a file named .htaccess on most Apache servers. If it cannot write the file, it shows the rules for you to add by hand.

In that case, copy the rules WordPress shows. Then paste them into .htaccess with your host File Manager and save.

On servers that use Nginx, the rules live in the server settings instead. Ask your host to confirm that pretty links are turned on.

A wrong edit to .htaccess can take the site down. Keep a copy of the old file before you change anything.

How Do You Check Nothing Broke?

Test right after the change and again over the next few weeks.

  1. Open your three saved old addresses in a private window.
  2. Each one should land on the right new address.
  3. Check the Redirection 404 log every few days.
  4. Watch the Pages report in Search Console for new not found errors.

Seeing not found errors in Search Console? Our guide to Not found (404) in Search Console explains what to fix.

Starting a new site? Our WordPress Launch Kit sets permalinks on day one, so you never need to change them.

Common Problems and Fixes

ProblemLikely causeFix
All posts show 404 after savingRewrite rules not refreshedGo to Settings, Permalinks and click Save Changes again
Old links show 404No redirect addedAdd the regex rule for your old structure
A page redirects to the wrong placeRegex rule too broadNarrow the rule or add an exception
Redirect loopTwo rules point at each otherDelete the newer rule and test again

Source: WordPress Permalinks screen documentation, read December 3, 2026.

Which permalink setting does your site use now?

  • Post name
  • Day and name
  • Something else
  • Not sure

Test Yourself

What should you add right after changing the permalink structure?

  1. A new theme
  2. Permanent 301 redirects
  3. More categories

Redirects send old links to the new addresses so visitors and search engines do not hit errors.

How long does Google suggest keeping redirects?

  1. One week
  2. Generally at least one year
  3. Until the next post

Google says to keep redirects as long as possible, generally at least one year.

Frequently Asked Questions

Will changing permalinks hurt my rankings?

It can for a while if old links break. Permanent redirects and updated internal links reduce the risk.

Which permalink setting is best?

Most sites use Post name. WordPress notes that including the post name makes links easy to understand.

Do I need a plugin to redirect old links?

Not always, but the free Redirection plugin is the simplest way. It also logs 404 errors.

Can I go back to the old structure?

Yes. Switch back in Settings, Permalinks, and remove the redirects you added.

Conclusion

Back up, switch to Post name and save, then add 301 redirects at once. Keep them at least a year and update your internal links and sitemap.

Editor’s Note

This guide is accurate as of December 3, 2026. We checked the setting names in WordPress core and the facts on the official pages linked above.

Spot an error in this article? Please contact us at support@digieh.com or read our Corrections Policy.

Keep exploring

Your next read is waiting

Found this useful?

Share this post
Avatar photo

Syed Wasif Raza

Syed Wasif Raza is the founder and editor of Digieh. He writes about health, food, lifestyle, news and sports in plain, easy English. Every guide he publishes is checked against official sources such as government and health agency pages. Connect with him on LinkedIn.

Articles: 1006

Leave a Reply

Your email address will not be published. Required fields are marked *