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

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

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

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

  4. Click 'Save Changes'.

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

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

  6. Click 'Save Changes'.

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

  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

Was this answer helpful?

 Print this Article

Also Read

How to Install WordPress

The purpose of this tutorial it to teach you how to install WordPress directly from...

How to Configure Your Settings in WordPress

This tutorial will teach you how to configure your settings in WordPress. You should log in, and...

How to Write a New Post in WordPress

The purpose of this tutorial is to teach you how to write a new post in WordPress. You need to...

How to Change Your Header in WordPress

This tutorial will teach you how to change your header in WordPress. You will need to be logged...

How to change your Password in WordPress

The purpose of this tutorial is to teach you how to change your password in WordPress. You...