WordPress permalinks not working is a common albeit easy problem to solve. This problem can crop up at any time due to a number of issues – issues that we address in this post to a great extent.
But I have information on WordPress permalinks the before we go full throttle, let us put a couple of words to this permalinks business for the sake of the greenhorn among us. If you still need more info about permalinks, they are simply the URLs of your posts, pages, and categories
How To Fix Broken Permalinks In WordPress
All you need to fix broken permalinks is access to your WP Dashboard, FTP credentials to access your server, and a little bit of patience.
1. Reset Your Permalink Settings
The first thing you want to do if you’re having this issue is to simply reset your permalink settings.
This is simply to double-check that it’s an actual issue and not just a small stutter that might have occurred during updating or migrating.
Simply log into your WP Dashboard, then go to the permalinks settings. Change your settings away from the standard setting, for example to numeric, then save changes. Now simply select your standard setting again, and save the changes.
Now go back to your site, and try to go to any of your posts and pages. Do they show up as they should, or do they show a “Page Not Found” or 404 error?
If they show up as they should, good news.. your problem was likely a stutter caused by a temporary conflict or minor bug.
If you keep getting the error, you should keep following the steps until the problem is solved.
2. Check And Fix Problems With Your .htaccess File
First off, you need to find your FTP credentials. Usually, you can log into your user with your host and then simply see the FTP user inside the dashboard.
If not, you can head into cPanel and get an overview of your FTP users. Go into your cPanel, and click through to FTP Accounts.
Scroll down and you will see your existing accounts.
If you don’t know the password of any of your existing accounts, and you cannot see it in your cPanel, you can simply create a new FTP user.
Then all you need to do is open an FTP Client (like FileZilla) and connect to your website via FTP using your FTP credentials. (Usually ftp.yourdomain.com)
Now head over to the root folder of your WordPress site, and right-click your .htaccess file. You should see the option for “file permissions”.
Your file permissions should look something like this:
If they don’t, set them to 644. Now go back to the WordPress permalinks on your site and try to change the settings and save the changes once more.
Check your page again, still getting an error?
Time to check out the insides of your .htaccess file. Download the file, and open it up.
If you have the W3TC plugin installed, your file should look more or less exactly the same as this:
Even if you don’t, you should at least have the highlighted part in your .htaccess file.
But If you don’t, the easiest way to fix this, is to set the file permissions to 666, then reset the permalink settings, and then change your file permissions back to 644.
If you download your .htaccess file again and open it, you should be able to see the highlighted part. If not, you can copy and paste the appropriate code from this codex page.
Try to reset the settings again and visit a post or page. More than likely this will finally fix your website. But if you’re still getting a 404 error, don’t despair.
3. Find And Fix Plugin Conflicts
Another thing that could be causing your permalinks to not work, could be a plugin conflict.
For example a plugin that deals with 403 redirects or some such things.
If you do not have an overwhelming amount of plugins, an easy way to check for and fix this problem is simply disabling plugins one by one.
First, disable a plugin, then go over to permalink settings and reset the settings again. Now try again to see if your pages show up as they should. No? Disable the next plugin and try again.
One thing to note is that it could be that it is not one plugin that is causing the problem, but more than one plugin with incompatibilities working in tandem finally creating a big problem.
Once you have identified the plugin that seemed to be responsible for stopping you from setting permalinks, you can try to reactivate it. It may not affect your permalinks when they have actually been set but may need to be deactivated for you to be able to set your permalinks.
In conclusion, fixing not working permalinks in WordPress is an essential task to ensure that your website’s content is easily accessible to both users and search engines. By following the steps outlined in this guide, you can quickly identify the cause of the problem and take the necessary actions to resolve it.
Some of the key solutions to fixing permalinks include resetting your permalinks to the default settings, ensuring that your .htaccess file is properly configured, disabling conflicting plugins, and updating your WordPress version and theme.