If you’re running a WordPress website, you may encounter the 404 Page Not Found error while browsing internal pages. This usually happens:

  • After migrating or transferring your website, or

  • When changes are made to the .htaccess file.

Here’s how you can fix this issue on StableCluster hosting.

I. Add or Update the .htaccess File

  1. Log in to cPanel and open File Manager.

  2. Navigate to your WordPress site folder, typically containing /wp-content/ and /wp-includes/.

Note: Enable Show Hidden Files in File Manager Settings to see the .htaccess file.

wp_htaccess.png

  1. Locate the .htaccess file and edit it.

  2. Paste the following code:

 
# BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress
  1. If the folder does not have a .htaccess file, create a new one:

    • Click +File in the top-right corner of File Manager.

    • cp_file-manager_create_file.png
    • Name it .htaccess and click Create New File.

    • file_manager_create_newfile-min.jpg
    • Edit the file and paste the code above.

This solution fixes the 404 error in most cases, especially after website migration.

II. Reset WordPress Permalinks

  1. Log in to your WordPress Admin Dashboard.

  2. Go to Settings → Permalinks.

  3. wp_settings_permalinks.jpg
  4. Select Post name and click Save Changes.

  5. wp_permalinks_postname.jpeg

WordPress will automatically rewrite the .htaccess file and reset the permalink structure, resolving the 404 error.

Conclusion:
Following these steps ensures your WordPress site’s internal pages load correctly and eliminates the 404 Page Not Found error.

Was this answer helpful? 0 Users Found This Useful (0 Votes)