# Fix WordPress 404 Errors After a Permalink Change

https://ferkesh.net/knowledgebase/article/wordpress-permalink-404

![Diagram linking Homepage works, Posts fail, Review rewrites and Retest URLs.](https://ferkesh.net/kb-media/ferkesh-guide-diagrams-batch-02.svg#wordpress-permalink-404)

If the homepage loads and most posts return 404 after a WordPress change, start with the permalink format and the server’s request routing. A missing single post, a wrong base address and a stale proxy cache can look similar but need different fixes.

## Compare affected pages

Open the homepage, a known published post and the WordPress dashboard. Record their complete URLs. If just one item is missing, check whether it is published, whether the slug changed and whether the old URL has a redirect. If most pretty URLs fail after migration, compare the configured permalink structure with your previous site and the hosting provider’s supported rewrite configuration.

## Refresh the existing structure

Back up the relevant configuration and use an account with the proper WordPress permissions. Go to Settings → Permalinks. Note the current selection and save it without choosing a different public format. WordPress may update rewrite rules where it can write them, or tell you to apply them manually. Apache and Nginx use different configurations. Ask the host how routing is managed before replacing a server file or granting extra write permissions.

## Retest published and old URLs

Clear only the cache that covers the changed route and open a published post from the menu. Check one formerly shared address, the expected redirect and a truly missing address. If the provider reports normal rewrites, share the first failing URL and the server response with a technician rather than repeatedly resaving the setting.

## Related guides

- [How to Update WordPress Safely](https://ferkesh.net/knowledgebase/article/update-wordpress-safely)
- [How to Change a Website’s PHP Version in Plesk](https://ferkesh.net/knowledgebase/article/plesk-php-version)
- [Troubleshoot the WordPress Critical Error Screen](https://ferkesh.net/knowledgebase/article/wordpress-critical-error)
- [WordPress category](https://ferkesh.net/knowledgebase/category/wordpress)

## Official references

- [WordPress Permalinks screen](https://wordpress.org/documentation/article/settings-permalinks-screen/)
- [WordPress common errors](https://developer.wordpress.org/advanced-administration/wordpress/common-errors/)

Ferkesh Hosting. Last reviewed November 26, 2026.
