Troubleshooting / symptôme

WordPress returns 404 after changing permalians

The home page works but internal articles or pages return 404 after a migration or modification of permalians.

⌚ About 3 min read
View my favorites
Real-world problem · V2

Quick troubleshooting view

What you are seeing

The home page works but internal articles or pages return 404 after a migration or modification of permalians.

Likely causes
  1. unregenerated rewrite rules
  2. wrong.htaccess file
  3. missing Nginx configuration
First checks
  1. Re-register permaleans
  2. Check the web server
  3. Test a specific page
Recommended actions
  1. regenerating the rewriting rules
  2. restore the appropriate Apache/Nginx rules
  3. empty caches after correction
Start Symptom → Cause →
WordPressBeginner

The home page works but internal articles or pages return 404 after a migration or modification of permalians.

Important: relevez toujours le message d’erreur exact et l’heure du problème avant de modifier la configuration. Les actions proposées doivent être adaptées à votre environnement.

Causes probables

  • unregenerated rewrite rules
  • wrong.htaccess file
  • missing Nginx configuration
  • modified slug or CPT base

Diagnostic étape par étape

  1. 1

    Re-register permaleans

    Open Settings → Permalians and save without changing the structure.

  2. 2

    Check the web server

    Control.htaccess under Apache or try_files under Nginx.

  3. 3

    Test a specific page

    Compare a standard page and a CPT.

  4. 4

    Control plugins

    Check if an extension changes the re rygle rules.

Solutions possibles

  • regenerating the rewriting rules
  • restore the appropriate Apache/Nginx rules
  • empty caches after correction
  • avoid changing public slugs without redirection plan
Quand escalader ?

Escalader if only the roads of a personalized CPT remain in 404 despite a correct petit re petit.

♡ 0