WikiPlus

Why Are My URLs Showing as Numbers Instead of Words? Causes and Fixes

URLs showing as numeric IDs — like https://example.com/?p=1234 or https://example.com/post/456 — instead of descriptive keyword slugs is a common problem for WordPress sites that have not configured their permalink settings correctly. These numeric URLs are SEO liabilities because they contain no keyword signals and look untrustworthy to users. WikiPlus Slug Generator at wikiplus.co helps you generate the correct slugs once you have fixed the underlying permalink settings. This guide explains the cause and the complete fix.

Why Numeric URLs Happen

WordPress defaults to numeric permalinks (?p=123 or /archives/123) when first installed or when the permalink setting is reset. This happens most often after a new WordPress install before configuring the settings, after a database restore that resets options, after a server migration that writes new WordPress files over old settings, or after a developer explicitly set plain permalinks for debugging. The numeric format is the simplest URL structure for WordPress to serve without requiring .htaccess URL rewriting. Woo Commerce and some other plugins can also introduce product-ID-based URLs if installed before configuring permalinks. Other platforms (Shopify, Webflow) use descriptive slugs by default — numeric URLs are primarily a WordPress configuration problem.

Fixing WordPress Permalink Settings

To fix numeric WordPress URLs: go to WordPress Admin > Settings > Permalinks. Currently your Permalink Structure is probably set to Plain or Default (the numeric options). Select Post name — this sets URLs to https://example.com/your-post-slug/. Click Save Changes. WordPress will regenerate your .htaccess rules to support pretty permalinks. Important: after switching from numeric to descriptive permalinks on an established site, all your existing numeric URLs now return 404 errors. You need to either set up 301 redirects from old numeric URLs to new descriptive ones (using the Redirection plugin with the auto-add redirects feature), or if the site is new with no traffic or backlinks, simply accept that the old URLs no longer exist and move forward.

Generating New Descriptive Slugs

After fixing permalink settings in WordPress, review each post and page to ensure the auto-generated slug is SEO-friendly. WordPress creates slugs from post titles automatically under the new permalink structure, but if titles are long or contain stop words, the resulting slugs may be suboptimal. Use WikiPlus Slug Generator at wikiplus.co to generate an improved slug for each important page: paste the post title, review the generated slug, trim if needed, and paste it into the WordPress permalink field for that post. For sites with many posts, prioritise updating slugs for your highest-traffic pages first, then work through the rest in order of importance. Set up redirects from any changed slugs as you go.

Preventing Numeric URLs from Returning

Once you have fixed your permalink settings, ensure they stay fixed. Add a reminder to check Settings > Permalinks after any major WordPress update or plugin installation — some plugins can interfere with .htaccess rules. Create a backup of your .htaccess file after configuring permalinks so you can restore it quickly if something overwrites it. Consider monitoring your most important URLs monthly using a URL health check tool or setting up an uptime monitor that checks a few canonical URLs for 200 status — a 404 on a previously working URL is often the first sign that permalink settings have been disrupted.

Frequently Asked Questions

Why does my WordPress site show ?p=123 in the URL?
WordPress is configured to use Plain or Default permalink structure, which uses query strings (?p=123) instead of descriptive slugs. Fix it by going to Settings > Permalinks and selecting Post name. Click Save Changes. This requires mod_rewrite to be enabled on your server and a writable .htaccess file. If saving does not update the .htaccess automatically, your server may need manual configuration — contact your hosting provider.
Will changing from numeric to descriptive URLs hurt my Google rankings?
For sites with existing traffic and backlinks, the URL change requires proper 301 redirects to preserve SEO authority. With redirects in place, the long-term effect is positive — descriptive keyword slugs outperform numeric ones in both click-through rate and keyword relevance signaling. Without redirects, the ranking loss can be severe and long-lasting. Use the Redirection plugin in WordPress to automatically create redirects for all changed URLs as part of the permalink migration.
How do I change URLs in WordPress without losing SEO?
Change your permalink structure in Settings > Permalinks to Post name. Install the Redirection plugin and configure it to auto-detect and create redirects for old URLs. After changing the structure, use the plugin bulk redirect feature to create 301 redirects from the old numeric URLs to the new descriptive ones. Submit your sitemap in Google Search Console to help Google discover the new URLs. Monitor the Coverage report for 404 errors in the weeks following the change.