1. Home
  2. Presales
  3. How do I solve 404 Errors while working in WordPress?
  1. Home
  2. Presales
  3. How do I solve 404 Errors while working in WordPress?

How do I solve 404 Errors while working in WordPress?

404 Page Not Found errors often occur when a new theme has been activated or when the rewrite rules in the ‘.htaccess’ file have been altered, when working in WordPress.

404 Page Not Found error in WordPress can be corrected using two ways:
Option 1: Correct the Permalinks

    1. Log in to WordPress Admin Control Panel, using the login/password you created.https://help.crucial.com.au/hc/en-gb/article_attachments/201476594/undefined
    1. From the left-hand navigation menu in WordPress, click ‘Settings‘ > ‘Permalinkshttps://help.crucial.com.au/hc/en-gb/article_attachments/201383540/undefined
    1. Note the current setting. If you are using a custom structure, copy or save the custom structure somewhere.
      Select Default.

      https://help.crucial.com.au/hc/en-gb/article_attachments/201383560/undefined

    1. Click ‘Save Changes‘.https://help.crucial.com.au/hc/en-gb/article_attachments/201476624/undefined
    1. Change the settings back to the previous configuration (before you selected Default). Put the custom structure back if you had one.https://help.crucial.com.au/hc/en-gb/article_attachments/201476654/undefined
    1. Click ‘Save Changes‘.https://help.crucial.com.au/hc/en-gb/article_attachments/201476624/undefined
  1. This will reset the permalinks and fix the issue in many cases. If this doesn’t work, you may need to edit your ‘.htaccess’ file directly.

Option 2: Edit the .htaccess file

    1. Follow the instructions in this article on How to Edit Your .htaccess file.
  1. Add the following snippet of code to the top of your ‘.htaccess’ file:

# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# End WordPress

Updated on April 14, 2020

Was this article helpful?