Solve 404 Errors while working in WordPress


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.


  2. From the left-hand navigation menu in WordPress, click 'Settings' > 'Permalinks'


  3. Note the current setting. If you are using a custom structure, copy or save the custom structure somewhere.
    Select Default.


  4. Click 'Save Changes'.


  5. Change the settings back to the previous configuration (before you selected Default). Put the custom structure back if you had one.


  6. Click 'Save Changes'.


  7. 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.
  2. 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

Did you find this article useful?  

Related Articles

© Crucial