Home » Tips » How To Fix 404 Errors In WordPress Without Using Plugins

How To Fix 404 Errors In WordPress Without Using Plugins

404-error
404 error is pretty familiar to all PC users. This error page is so annoying when it shows up during browsing activities. Therefore, if someone visits your own site and he or she suffers this 404 error, he will have a poor experience and won’t come back to your website again. As a result, you may suffer some loss. Therefore, it is very important for you to check your site regularly to see if it works right or not. When the error happens, fix it timely so as to avoid the loss. Commonly, these words will be displayed if 404 errors occur:

“Oops! That page can’t be found”
“We’re sorry! Page not found”
“Whoops looks like we lost one”

If this is happening to your website please follow these steps below to fix it now.

Solution 1. You can quickly fix this error by resetting the permalink structures. To achieve this, please locate to the WordPress Dashboard, then go to Settings> Permalinks, and click Save Changes button. This will update the permalinks and should work properly.

Permalinks

Solution 2. Access to the .htaccess file, which is located at /wp-content/ and /wp-includes/ to make sure #wordpress rules are on top, if not navigate to base directory to remove the .htaccess file.
PS. Your htaccess file should like below:

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]

RewriteCond %{QUERY_STRING} !lp-variation-id
RewriteRule ^go/([^/]*)? /wp-content/plugins/landing-pages/modules/module.redirect-ab-testing.php?permalink_name=$1 [QSA,L]
RewriteRule ^langing-page=([^/]*)? /wp-content/plugins/landing-pages/modules/module.redirect-ab-testing.php?permalink_name=$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

Solution 3. You can disable all plugins to see if this is fixed or not. If not, you can check one by one to see which plug-in causes this issue.

Plugins

Solution 4. Clear your cookies as well as browsing history

remove-history

Solution 5. Check your site carefully to see if it has category, page, tag, or others with the same slug. More specifically, if your site has tag called Book with a slug “book”, the site would work improperly. In this case, you have to rename either your custom post type slug or fix the other page to fix it.

Hope this helps you fix your site 404 error rightly the next time you encounter this. If you have questions or comments, leave them below.