WordPress Showing 404 Not found On Old and New Posts

WordPress ‘404’ Not Found Error Fix

It is 1:11 AM here and I have recently resolved a WordPress Cpanel issue, the first thing I am doing after resolving the issue is writing this article so as to help other bloggers who are not used to all the techie stuff behind the site. Before beginning with the WordPress 404 not found error fix, let me clear one thing that 404 not found error might be because of various issues but this article will help you in fixing in one case and that is suddenly your wordpress blog has started showing 404 not found error on old as well on publishing new articles.

Recently I had to renew my blog and unfortunately my site ran into issue and it remained offline for 20 days, today it is renewed and what I observe is that the homepage i.e http://www.focusandleap.com was opening perfectly opening but when I tried to open any article on it, it showed me ‘404’ not found error. It was really annoying as I had no idea why this was happening but eventually got the fix to this 404 error WordPress.

Read the article carefully as I will exploring the different methods I tried, some of these methods worked for other blogger but not for me so I had to try something else . Here we go with the WordPress 404 not found error fix :-

I am damn sure that one of the below is going to work for you as well.

WordPress 404 not found error fix

Hostgator Maximum discount coupons codes

I.) Try deactivating all your plugins :-

CHECK OUT  How to Setup Cloudflare Best Free CDN to Speed Up Website

This is one of the basic reason behind this problem that your WordPress site suddenly showed 404 error on all the post, old as well as on publishing new ones. Just log in to your WordPress dashboard and head over to the plugins section, deactivate all of them and then try reloading the articles.

If the problem vanishes then you have diagnosed the problem, activate the plugins one by one along with reloading the article simultaneously, if you see that after activating a desired plugin the problem again aroused then remove that plugin and look for another. But if the problem is still there then activate them all once again and head over to the second method below.

 

II.) Activating the default theme :- ( check if your site has responsive template )

The chances are very less that this will work but what is in trying, before going into the techie stuff lets try this, will take only 2 minutes, if the problem still persists then head back to your previous theme and read the third one.

 

Now if the above things didn’t worked then have a look at the method which worked for me :-

.htaccess method

There are still two ways that can be possible within .htaccess file. In one case it might be possible that the htaccess file is missing and i this case you will have to upload a htaccess file to your cpanel. Follow the steps :-

* Open notepad
* Press space once
* Save as htaccess.txt
* Upload to the same directory as wp-config.php
* Change it’s permissions to 666
* Change it’s name to .htaccess (just that, nothing else)

CHECK OUT  How to Remove Date From Google Snippet Results in WordPress

Then inside WP
Options > Permalinks > Update

Try reloading the article pages now, does it worked ? If yes then congratulations, if not then below is the last resort left :-

.htaccess file editing with code

This method worked for me in a single attempt, hope that this might resolve your problem.

First of all locate the .htaccess file, most of the time you can find it in the public_html section in the home directory.

Visit there and locate .htaccess file, once you have found it, right click on it and select edit. Before this visit your WordPress dashboard and select the best permalink structure and update it, then paste the code.

There you have to paste this code :-

# BEGIN WordPress

<IfModule mod_rewrite.c>
ErrorDocument 404 /index.php?error=404
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

After adding this code properly, save the file. Come back to your WordPress dashboard and go to Settings >> Permalinks update again without bringing any changes.

Now you just have to visit the website and open an article. Did it opened up properly ? Hurrayy.

That was all I tried and the last one eventually worked for me. If you tried any new method and it worked for you them please do let us now and share with the world in solving others problem via comments. Happy blogging.