Solve 404 Errors while working in WordPress

  Print

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.

    1eaff488030fdfe12bd738f7adbfde48a3907d42?t=6a5a8f13e38d39b4c017ed5d700253f1

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

    4eee5042caa2be37bf54c32892a2fb52e44a37fe?t=c0382693ef02794c15a4529b98c59720

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

    e278199174387e1f5d02d8b7acf8d2989343acf9?t=7166a2213d5b59aa29d3a8250958c7b8

  4. Click 'Save Changes'.

    bc5ef20b1eacfa92cdef01b0db92bdcd35e39099?t=74a7147c3bfc82a11b416177d73370c2

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

    cadbd89c73892f2d00f0123d9371a67787b98298?t=ad401582583a72a2f2414bef70867ad6

  6. Click 'Save Changes'.

    4aad78055ea1c3f28c982ec8df2087e54ad2311e?t=d83e16d6e0432688f7459dede4376976

  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