Updated on Nov 9, 2022
Running into "404 Page Not Found" on your WordPress website is frustrating. It usually happens when you have an issue with broken permalinks. In this article, we will help you understand how to fix broken permalinks in WordPress.
This post includes:
You may get broken permalinks for different reasons, such as:
.htaccess
file. Updating, or altering your .htaccess file incorrectly.Here are some methods you can use to fix broken permalinks in WordPress.
The simplest way to deal with this problem is by resetting the permalinks structure:
If you're still getting a "404 Page Not Found" error, keep reading the post.
Deactivate the most recently installed or updated plugin that might be triggering the error. Otherwise, you can also remove all the installed plugins altogether:
Reset the permalinks structure using the previous method
In case none of the options solved your broken permalinks issue, the issue can be related to your .htaccess file's configuration. Thus, you should replace your current .htaccess file with the default one.
In this example, we'll be using Hostinger's File Manager:
.htaccess
file in the public_html
folder..htaccess
..htaccess
file.
# 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
Alternatively, you can also run this process by using an FTP client like FileZilla.
If the problem is not solved, try to remember what actions you've taken before the error occurred. If it happened after performing a specific update, then restoring a backup might be a reliable option to get your site up and running.
It is not difficult to fix permalinks. You can use an online broken link checker, such as the W3C Link Checker, to check the health of your permalinks.
We hope this guide was useful in resolving broken permalinks on your WordPress site. If your permalinks are still not working after trying these solutions, please provide more information in the comment section below, and we will be happy to assist you.
We hope you find this article useful. Discover more about FastCloud - the top-rated Hosting Solutions for personal and small business websites in four consecutive years by the HostAdvice Community!