When a moved WordPress site shows its homepage but every article returns “Page not found”, resist the temptation to rename the articles. A single request can tell you whether the content exists at all. Open a known published article from the dashboard, copy its actual public URL, then compare it with a working static file and another published page.
A permalink is the public address for an item. A rewrite rule helps the web server and WordPress interpret that address internally. A redirect sends the visitor to a different address. Restoring the old routing can fix hundreds of broken links while keeping every address exactly as it was.
Build a four-request fault map
Use the same hostname and a signed-out window. In the browser’s developer tools, open Network, enable Preserve log and reload. Read the first document response and any following redirects. A page that looks like an error can still have a 200 response. A styled 404 might be composed by WordPress, a proxy or the host.
| Request | Why it belongs in the test |
|---|---|
| Homepage | Establish whether anything responds on this exact hostname. A cached homepage can conceal an origin fault. |
| A real static file | Copy the URL of a known existing image from this installation. Check the image itself loads, preferably from the same host rather than a separate CDN. |
| A published page and article | Compare a known current address with a sibling. This separates one damaged slug or custom post type from broad routing failure. |
| A known post by ID | On a conventional installation, try the public base followed by ?p=123, substituting an actual published post ID. Record the first response and its Location if it redirects. |
You can find a post ID in the dashboard edit URL on many installations. Use an ordinary public post, not an attachment, private post or scheduled draft. On a subdirectory installation include the correct public base. If WordPress recognises the ID it may redirect to the pretty permalink. A 301 to the correct pretty address followed by a 404 differs from a direct 404 on the query request. The former is evidence the installation recognises the post but the named path still has trouble.
Read the pattern before changing a setting
One path fails, comparable articles work. Check published status, spelling, parent page, translated prefix and whether a category base changed. A parent page rename changes the full address of its children even when the final slug is identical. Try the current URL WordPress gives you. If it works and an old link is still used, plan the relevant old-to-new redirect.
All pretty paths fail, assets load and WordPress recognises the post ID. The leading suspects are routing to WordPress and the rewrite rules it uses. Confirm the public site is served from the expected document root. A cached or static homepage can survive a move even while the application’s entry point does not.
Only product pages or another custom content type fail. Confirm the plugin that registered that content type is active and compatible. A shop might have regular posts working while its product base is wrong. Refreshing rules cannot restore a missing registration. Investigate the affected component first.
Static files also fail or the wrong site loads. Verify the migration, hosting destination, document root and hostname mapping with the host. Changing permalinks on a different working installation is a particularly efficient way to acquire a second problem. Website migration checks
Refresh the existing structure cautiously
In the correct installation, open Settings → Permalinks. Record the selected structure, custom string and any category or tag bases before doing anything. If a custom rewrite setting belongs to a plugin, note that too. Thumbnails of the settings screen are handy here; keep personal or infrastructure details out of shared tickets.
If the existing structure is correct and the content types are registered, save it without switching to a different format. This is a conventional way to refresh the rules. Test the exact failing URL again in a fresh session. Changing from Post name to Plain and leaving it there changes the public behaviour for the rest of the site. WordPress permalink settings
If the problem persists, determine which server actually handles paths. On Apache, WordPress commonly uses rewrite directives in an .htaccess file. Server configuration and permission to honour those directives matter. On Nginx, rewriting is controlled in the server configuration; editing an Apache file cannot fix a rule Nginx never reads. Some sites run a proxy in front of a different origin. The Server header alone does not settle the question. Apache configuration · Nginx configuration
Ask the host to check the rule that passes unmatched paths to the intended WordPress entry point. Include whether the site is single-site, Multisite, in a subdirectory or behind a proxy. Preserve custom rules and a restorable copy before any server edit. Replacing the entire rules file with an internet example can remove access restrictions or valid redirects needed by other parts of the business.
Prove old links have recovered
Return to the original set. The static image should still be an image, the current article should return the expected content, and a genuinely nonexistent page should still return 404. Test a real deep link from a recent email, including its tracking query if applicable. On a shop, try a product category and an individual product. Check a logged-out phone as well as the admin’s browser.
A useful handoff is a short ledger: exact URL, time and zone, first status, redirect destination if present, final status and whether the visitor saw the correct page. Attach the before-and-after rows rather than a screenshot of the homepage. If only one hostname or network still shows the error, investigate cached responses or different destinations with that evidence before doing another global rewrite.