How To Fix WordPress 404 Error

Share on facebook
Share on google
Share on twitter
Share on linkedin
WordPress is everyone’s go-to CMS in the online world. Whether you’re creating a blog site or a dropshipping site or anything remotely interactive on the internet, WordPress should be your first choice to create the website. However, there are difficulties, too, as you may sometimes face errors such as the ‘internal error; or ‘error establishing a database connection.’ There is also a very annoying and terrifying error you may encounter, which is the ‘WordPress error 404’. And in today’s article, we’re going to reveal How to fix WordPress 404 error.
So, sit back and read through carefully to learn two straightforward and easy to implement tricks to fix your WordPress error 404 problems.

Table of Contents

What is WordPress Error 404?

error, www, internet
Did you ever click on a website and find yourself reading a message that says “Error 404: Page not found”? Don’t panic if your answer is yes because you’re not alone, my friend. Throughout our online surfing history, we’ve all come across this situation. A similar situation is also possible when maintaining your blog site via WordPress.
This is a problem when you can access the WordPress admin area and hence the main page of your blog. But whenever you try to access a single post in your blog, it shows “Error 404: Not Found’ prompt. I know it may terrify you if you see this text, but trust me, there is nothing to be afraid of. You may feel horrified that your blog post is no longer there, and no one can access it. But let me assure you that it’s still pretty much there. It’s not deleted or has not vanished.
This happens due to 2 reasons.
So, what you really need to do is check for these two symptoms and then take action accordingly. Broadly, we can say that you need to change or fix your permalink settings.

How to fix WordPress 404 Error?

How To Fix WordPress 404 Error
There are three methods of fixing this problem. They are Refreshing the permalink settings automatically using just two simple clicks or updating the .htaccess file manually or resetting the permalinks manually. These have been discussed in detail below.

Method 1: Refreshing Permalink Settings

Okay, so the first way to show How to Fix WordPress Error 404 is by refreshing your permalink settings. For this, first, you have to go to your WordPress admin section. Then click on settings. From there, click on ‘Permalink.’ Then just click on ‘save changes.’ You can follow the picture given below to do it too.
Permalink
What this does is updates your permalink settings and flushes the rewrite rules. Usually, this much is enough to fix the ‘WordPress Error 404’. However, if your problem is still not solved, then you need to manually override the settings and update the .htaccess file.

Method 2: (Manually logging into server through FTP and updating the rewrite rules)

This is an easier brief step before you follow method 3, which is more elaborate. For this, you have to access your server manually using FTP and access .htaccess files situated with folders like /wp-content/ and /wp-includes/.
htaccess edit
There are also two processes you can follow here. You can change the permission to 666 and temporarily make the file writeable and then proceed to follow method one again. But remember to change the permission to 660. You may manually update the code in your .htaccess file too. The code is as follows.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Method 3: (Manually resetting permalinks)

Now, this method is a bit more complex. This method can be implemented in 3 ways based on where your site is located. Well, saying that you can do it in 3 ways would be an overstatement. Actually, it’s three different codes to be manually rewritten following the same process based on the location of your site.
Now, the codes will differ based on whether your site is located in the main domain, or in a subdomain or in a subdirectory. We’ll provide all three codes for you, don’t worry. But first, following the picture below, access your .htaccess files and then proceed to update it.
htaccess edit
If your site is in the main domain, then insert the following code.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
After editing and uploading the file, refresh your page and check whether this fixed the issue.
If your site is in a sub domain, insert the following code:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
After inserting and uploading the code to .htaccess file, make sure to refresh your page and check if the issue still persists.
If your site is in a sub directory, insert the following code:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
After inserting and uploading the code to .htaccess file, make sure to refresh your page and check if the issue still persists.
One of the three methods mentioned above should definitely fix your issue. Try going through the solution steps chronologically, as mentioned in this article on How to fix WordPress error 404 as the steps have been listed according to difficulty and timeliness.

conclusion

We hope you were benefitted from today’s article on How to fix WordPress 404 error. For more of such informative solutions and tutorials, don’t forget to subscribe to this blog. We offer exclusive newsletters, tutorials, coupon codes, vouchers, e-books, and loads of other stuff. Until next time, take care. Cheers!
Related Pages :
This post contains affiliate links. It means if you click one of the product links and then purchase the product, we’ll receive a small percentage from the sellers’ end. No need to worry! You’ll still pay the standard amount. So, there’s no extra charge from your part.
Are you in dire need of the best wordpress developing tutorials & digital marketing guide? Did you say you need the best hosting, theme & plugin reviews too? Well, look no more. Subscribe with us right now and never miss our exclusive weekly newsletters, guides and tutorials!

Please, share the article!

Share on facebook
Share on twitter
Share on linkedin
Share on google
Share on pinterest
Yousuf Hossain

Yousuf Hossain

I am an entrepreneur who always invests time closely with people to successfully bring their business online. My main mission with this blog is to help people with offering them free guides and tutorials related to website design and marketing so that people can grow their online businesses following my guidance and path!

Leave a Comment

Your email address will not be published. Required fields are marked *

Sign up to our newsletter!

About Me

I am an entrepreneur who always invests time closely with people to successfully bring their business online. I love blogging. It’s my passion. I love to share free knowledges to people. These knowledges are often based on what I learnt and experienced with the busy and materialistic real world. I am the founder of EasyWPSolution, CenterTroop and many other online businesses. My main mission with this blog is to help people with offering them free guides and tutorials related to website design and marketing so that people can grow their online businesses following my guidance and path!

Recent Posts

Landing Pages for WordPress
HubSpot
WP Rocket - WordPress Caching Plugin

Table of Contents

Sign up for our Newsletter

*You can unsubscribe at anytime!

Pin It on Pinterest

Shares
Share This
Scroll to Top