How to Resolve the 404 Error on WordPress Pages Print

  • 0

404 error occurs when a requested page can’t be found on your WordPress site. This issue is usually related to permalink settings or missing files. Here’s how to resolve it:

  1. Re-Save Permalinks:
    • The most common fix for 404 errors on WordPress pages is resetting your permalink structure.
      1. Log in to your WordPress Dashboard.
      2. Go to Settings > Permalinks.
      3. Without changing any settings, click Save Changes. This forces WordPress to rewrite your .htaccess file.
  2. Restore the .htaccess File:
    • If your .htaccess file is corrupted, you can restore it manually:
      1. Access your site using FTP or File Manager.
      2. Open the root directory (where WordPress is installed).
      3. If you can’t find the .htaccess file, create a new one.
      4. Add the following default WordPress rules:
        plaintext
        # BEGIN WordPress
        <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /
        RewriteRule ^index\.php$ - [L]
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule . /index.php [L]
        </IfModule>
        # END WordPress
      5. Save and re-upload the file.
  3. Disable Plugins:
    • A plugin may interfere with page URLs. Temporarily disable all plugins and check if the 404 error is resolved. Re-enable each plugin one by one to identify the culprit.
  4. Fix Incorrect URL in Page Settings:
    • Ensure the URL in your page’s settings is correct:
      1. Go to Pages > All Pages.
      2. Edit the affected page and check the Permalink under the title. Correct it if needed.
  5. Check File Paths and Media:
    • If the 404 error is for media files, ensure the files exist in the correct wp-content/uploads directory and that the links are correct.

Was this answer helpful?

« Back