Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk10 min

How to Remove “-2” From a WordPress URL Without Breaking Links

WordPress adds -2 when another post, page, or media attachment already owns the requested slug. Find and rename or remove the conflicting item, edit the target slug, and redirect the old URL if it was published.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

WordPress adds -2 when the slug you requested is already reserved by another object on the site. The conflict may belong to a post, page, or media attachment—even one you forgot existed. Find that object, give it a different slug or permanently remove it when it is genuinely obsolete, then edit the affected item’s slug to the clean version. If the suffixed URL has already been published, redirect it to the new address before changing anything.

What the -2 suffix means

The suffix is WordPress’s way of making a requested URL unique. When you save a post or page with a slug such as company-news, WordPress checks whether that slug is already in use in the relevant URL namespace. If it is, WordPress core’s wp_unique_post_slug() function changes the new slug to company-news-2 (or another available number).

As an Amazon Associate I earn from qualifying purchases.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

This is not random formatting and it is not normally caused by your permalink structure. It is a collision: two database objects are trying to claim the same path. WordPress.com’s support documentation describes the behavior plainly: if the same link is detected more than once, a number is added to differentiate it.

The conflicting object is not necessarily another visible article. Depending on the URL context, it can be:

  • Another published, scheduled, draft, or private post.
  • A page, including a hierarchical page with a parent path.
  • An attachment in the Media Library, such as an uploaded image or PDF.
  • An older item in Trash or an imported object that still retains the slug.

Because posts, pages, and attachments can use overlapping-looking names in different contexts, checking only the Posts screen often misses the cause.

Before changing anything: protect the old URL

If the -2 address has never been published, indexed, linked, or shared, you can usually change it without further work. If it has been live, treat the change as a URL migration. Search engines, bookmarks, social posts, analytics data, and other sites may still request the old address.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Record the full old URL, including its path and capitalization.
  • Check whether the page receives visits, search impressions, or referral traffic.
  • Take a current database and files backup before deleting content or making bulk slug changes.
  • Plan a permanent redirect from the old suffixed URL to the clean URL.

A redirect preserves visitors’ access and gives crawlers a clear replacement address. Changing a slug alone does not create that redirect automatically.

Find the object that owns the clean slug

Start with the exact unsuffixed text. For example, if the target is example.com/team and WordPress created example.com/team-2, search for team rather than the entire URL.

Check Posts

  1. In the dashboard, open Posts and search for the clean slug or the title associated with it.
  2. Inspect published, draft, scheduled, private, and archived-looking entries. A non-public item can still reserve a slug.
  3. Open likely matches and look at the permalink or slug field to verify the exact value.

Check Pages

  1. Open Pages and repeat the search.
  2. Inspect parent and child pages. A hierarchical page may use a path that looks different in the list while still conflicting with the requested URL.
  3. Confirm whether the clean slug belongs to a page that must remain available.

Check Media

  1. Open Media > Library and search by the file name, title, or slug.
  2. Look for attachments uploaded during an earlier import or redesign. An attachment can reserve a slug even when you do not regard it as a normal page.
  3. Open the attachment details and verify its attachment URL or permalink before deciding what to do with it.

Check Trash and less obvious content

Review the Trash views for Posts and Pages, and inspect any available attachment-trash view. Depending on your configuration and retention period, a trashed object may continue to be relevant to the collision. WordPress.com notes that permanent deletion removes an item from the site’s database; use that option only when you are certain the content and its URL are no longer needed.

Also consider imported content, multilingual duplicates, custom post types, or migration leftovers. The core collision check is based on stored objects, not on whether an item is prominent in your navigation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose the right remedy

Situation Recommended action URL impact
The clean-slug item is obsolete and has no continuing value Back it up if necessary, move it to Trash, then permanently delete it after checking dependencies The old item stops reserving the slug; any visitors to its former URL need an intentional destination
Both items are needed Give the older or less important item a distinct slug, then assign the clean slug to the intended item One existing URL changes and should be redirected if it was public
The -2 item is already the canonical content Resolve the other object’s collision first, then edit the canonical item’s slug The suffixed URL changes; redirect it to the clean address
The problem appears after changing the permalink pattern Restore or resave the appropriate structure only after reviewing the affected URLs A structure change can affect many URLs and does not create redirects
The clean URL loads unexpected content Inspect redirect rules, server configuration, and other objects using the slug The request may be intercepted before WordPress serves the intended item

Do not change the entire site’s permalink structure merely to remove a suffix from one URL. Individual slugs and the site-wide permalink pattern are separate controls.

Step-by-step: remove -2 from the URL

Step 1: Open the conflicting item

From Posts, Pages, or Media, open the item that currently owns the clean slug. If both pieces of content are required, edit this item’s slug to a temporary, clearly distinct value—for example, change team to team-archive. Save the change and verify that the temporary URL works before proceeding.

Choose a temporary value that will not become the final slug by accident. Avoid changing titles, content, taxonomy, or parent pages at this stage; the objective is only to release the conflicting slug.

Step 2: Permanently remove an obsolete owner when appropriate

If the conflicting object is genuinely obsolete, move it to Trash and review what depends on it. Check incoming links, embedded media, navigation menus, templates, and any redirects that point to the old address. Permanently delete it only when you have decided that the content, attachment, and URL should no longer exist.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Deletion is irreversible in the normal dashboard workflow. Keep the backup you made before removing content, especially on a site with legal, editorial, or customer-support records.

Step 3: Edit the item that ends in -2

  1. Open the post or page whose URL currently contains the suffix.
  2. In the editor, locate the Permalink, URL, or Slug control. The exact label varies by editor and WordPress version.
  3. Replace the suffixed value with the clean slug, such as changing team-2 to team.
  4. Save or update the item. WordPress allows a post or page slug to be edited after the item has been saved.

Use lowercase letters, numbers, and hyphens, and avoid spaces or punctuation that WordPress will normalize. If the editor refuses the clean value, the collision has not actually been resolved; return to the Posts, Pages, Media, and Trash checks.

Step 4: Test the clean address

Open the clean URL in a private browser window or a session where you are not logged in. Confirm that it displays the intended content, returns a normal success response, and does not redirect to an unrelated item. Test the old suffixed address as well; its behavior determines whether you still need a redirect.

Step 5: Add a redirect for an established URL

For a previously published -2 URL, create a permanent redirect from the old path to the clean path. A WordPress redirect plugin can manage this from the dashboard; a server-level redirect is another option for administrators who control the web server. Enter only the path when the tool requests a relative source, and confirm that the destination uses the correct protocol and domain.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

After saving the rule, test the old address in a private window and confirm that it reaches the clean URL without a redirect loop. Keep the rule in place for as long as visitors or search engines may still use the old address.

Permalink settings are not individual slugs

The Settings > Permalinks screen controls the pattern surrounding individual slugs—for example, whether a site places posts under a date path, a category path, or a simple post-name path. The slug field on a post or page controls that item’s final name within the pattern.

Resaving the Permalinks screen can refresh WordPress rewrite rules after a configuration change. It cannot make two objects share one slug. If two objects still claim the same name, WordPress will continue to assign a numeric suffix until the collision is resolved.

WordPress.org’s permalink documentation emphasizes that these addresses are intended to be permanent. It also warns that changing the permalink structure does not create redirects for existing posts or pages. Consequently, a structure change requires a URL inventory and redirect plan, while removing -2 from one item normally requires only a collision fix, a slug edit, and—when applicable—a single redirect.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Troubleshooting when the clean slug will not save

Another item still owns the slug

Repeat the search in all three areas: Posts, Pages, and Media. Include drafts, private content, imported records, and Trash. Compare the exact slug, not just the visible title; two titles can differ while their normalized slugs match.

The attachment is the hidden conflict

If Posts and Pages appear clear, inspect the Media Library. Rename or remove the attachment only after checking whether its file is embedded in articles, galleries, downloads, or templates. If the attachment must remain, give the post or page a distinct temporary slug, release the desired value, and then edit the target item.

The old item was moved to Trash but the collision remains

Check the relevant Trash screen and permanently delete the obsolete object when you are certain it is safe. Retention, backups, and plugins can affect how quickly deleted records disappear from your workflow. Do not repeatedly create and delete test pages; that makes the ownership history harder to trace.

The clean URL shows the wrong content

Inspect redirect-plugin rules and server redirects. A redirect may be sending the clean path to an older destination, or a server rule may run before WordPress’s routing. Disable or correct only the conflicting rule, then retest in a private window. Also confirm that a page hierarchy or custom rewrite is not producing the unexpected path.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You changed the permalink structure by mistake

Changing the structure affects more than the one page you were trying to fix. Review the previous setting, restore it if appropriate, resave the Permalinks screen, and prepare redirects for any URLs that genuinely changed. Do not assume that resaving alone will preserve search traffic.

A cache makes the old result appear to persist

Clear page, object, CDN, and browser caches only after verifying the database change. Test from a private window and, if possible, from a second network. Caching can make a corrected slug look broken even when WordPress is returning the right route.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Redirect and SEO checks after the change

  • Request the old suffixed URL and verify a single permanent redirect to the clean URL.
  • Request the clean URL and verify that it returns the intended content directly.
  • Update internal links, navigation menus, XML sitemaps, canonical settings, and structured data that still contain the suffixed path.
  • Check images, downloads, and embeds that may reference the old address.
  • Monitor server logs, analytics, and search-console reports for repeated requests to the old path or unexpected 404 responses.

A redirect is for continuity; it does not erase the historical URL instantly. Keep it while external links and indexed results transition to the clean address.

When changing the whole permalink structure is justified

Use the site-wide Permalinks screen only when you have a site-wide requirement, such as removing an unwanted date pattern or standardizing a large content migration. Before doing so, inventory the affected URL patterns, export or record the old-to-new mappings, and schedule time to test representative posts, pages, archives, attachments, feeds, and pagination.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For one -2 suffix, a global change creates unnecessary risk: it can alter many established addresses while leaving the original slug collision untouched. Resolve the individual conflict instead.

Practical examples

Example: duplicate page

You want example.com/pricing, but WordPress created example.com/pricing-2. Pages search reveals an old draft called “Pricing” with the slug pricing. If the draft is no longer needed, back up the site, remove the draft permanently, edit the live page’s slug to pricing, and test both addresses. If the suffixed page was public, redirect /pricing-2/ to /pricing/.

Example: media attachment

A PDF named “handbook” was uploaded months earlier. Its attachment owns handbook, so a new page becomes handbook-2. If the PDF must stay available, change the attachment’s identifying slug or choose a descriptive page slug such as employee-handbook. Update any links that point to the attachment before removing or renaming it.

Example: both pages must remain

An older page at /team/ is still needed for an archive, while a new page should become the main team landing page. Rename the archive to /team-archive/, save and test it, then change the new page from /team-2/ to /team/. Redirect the old public path if visitors previously used it, and update menus and internal links to reflect the new canonical page.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick checklist

  • Identify whether the suffix is -2 because of a slug collision.
  • Search Posts, Pages, Media, drafts, private items, imported content, and Trash.
  • Back up the database and files before deletion or bulk edits.
  • Give the conflicting object a different slug or permanently delete it only when appropriate.
  • Edit the target item’s Permalink or Slug field and save.
  • Test the clean URL and the former suffixed URL in a private window.
  • Add a permanent redirect when the old URL was published.
  • Update internal links, menus, sitemaps, canonicals, and embeds.
  • Use Settings > Permalinks only for a genuine site-wide pattern change.

The essential distinction

Removing -2 is a two-part job: release the clean slug, then assign it to the intended item. Permalink settings control the site’s URL pattern, not ownership of an individual slug. Once the collision is fixed, a carefully tested redirect protects anyone who still arrives through the old address.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

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

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.