How to fix the “WordPress links not working” error

How to fix the “WordPress links not working” error

If you are getting a 404 error when you try to visit pages and websites through links on your site, then this is likely the “WordPress links not working” error. This article will show you how to fix the broken links and enable them to work properly.

Permalinks within your site are very important so they should be made in such a way that when clicked on, they take the users to the desired destination. When these links malfunction, it can ruin the experience of your users, and prevent you from connecting with other websites.

Fixing the broken links is vital for improving the user experience on your site so you need to learn how to eliminate the“WordPress links not working” error.

Many WordPress users have encountered this error at some stage and the following guide created by our team at wpDataTables should help you fix it.

What are the Symptoms of the “WordPress links not working” error?

Broken links within your website will usually produce the 404 error. This error only shows when the link is trying to connect a user to a site that doesn’t exist, or the link itself is not correct. If one or more of your links do not connect to the desired destination, then your site might have the broken links, and it is crucial that you fix them as soon as possible.

Each browser shows this error in their own way; some browsers will just show the “404 Not Found” error, while Chrome, for example, will display: “404. That’s an error.” It appears when the browser is trying to reach a site from the link, but it can’t reach it due to a broken link or if the site doesn’t exist.

Broken internal permalink is a problem because you are not able to show your website in full. Usually when you get a WordPress 404 error the webpage will not display. In some cases, though, only parts of the page will be shown, like the sidebars and content at the top, while the rest of the contents won’t appear.

This case is also dealing with broken permalinks. This type of 404 error is sometimes seen with WordPress webpages, and they pop up when a site can’t be displayed, or when the link is broken.

The 404 error is a big indicator of broken links, and it is a good idea to permanently eradicate the error as quickly as possible.

Why do Permalinks not Work in WordPress?

Broken links within your website, especially internal broken links can cause your website to collapse onto itself, and create much damage. They will significantly inhibit the potential of your site. You can check your stats widgets for possible 404 errors on your site.

The problem is that you have some very important pieces of content on those pages, and you don’t remember removing the pages. There could be a number of reasons for the “WordPress links not working” error, and locating the cause is the first step towards eradicating it. Here are some common causes of the error.

New Plugins are Messing With the Links

Sometimes, plugins might be at the heart of the issue, especially those that deal with permalinks in some way or another. You should check the plugins to see if they are causing the error.

Updates

Unfortunately, new updates to WordPress or one of its themes can often be the cause of this error.

It is possible that the update causes incompatibility with some of the elements of your website, such as a plugin or themes, which breaks your permalinks. Try reversing the update to test this, but be careful not to lose data.

Migrating to a New Server

If you have recently moved your data to another server, or if you have restored backup recently, that might be the root of the problem. Sometimes, WordPress permalinks are not working or go missing during this process. Fortunately, you can remedy the issue with certain plugin or pieces of software.

Caching

Sometimes, the error might only pop up for you but it works perfectly for others. This is due to a caching problem with your browser..

Wrong DNS Settings

The DNS settings may have the problem, or maybe the domain hasn’t yet been propagated, so the error will also show up.

Wrong File Permissions in the .htaccess File

In some cases, the scenario above can also create the problem, especially if you have recently changed or updated the .htaccess file. Check for permissions in your .htaccess file.

How to fix the WordPress Links not Working error

To fix the problem, you will need access to the WP dashboard and FTP credentials. Hopefully, you will be able to fix the issue with one of these methods.

Method #1: Reset the Permalink Settings

The first thing you should try is resetting your permalink settings. If you do this, you will know whether it was a real issue or an occurrence. Here is how to reset the permalink settings.

  • Log in to the WP dashboard. Go to permalink settings; set the settings away from the standard settings (it can be numeric settings), and save it. Then, revert back to standard settings again, save and see if it works.
  • Try to access one of your broken links again. Do they work now, or is the 404 error still showing?
  • If they still don’t work, try one of the other solutions.

Method #2: Replace the .htaccess file

If the issue is more serious, and the links are still not working, there is something wrong internally. You will have to change the .htaccess file manually in such a way that it will show the links.

You will need some sort of file manager for this. You can use a plugin called File Manager. Here are the steps.

  • Open the main folder and find the .htaccess file
  • Right-click on it, and rename it (for example, to .htaccess-error)
  • Click on the New File icon at the top, and name it .htaccess.
  • Paste the below code into the new .htaccess file
BEGIN WordPress

<IfModulemod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Once you have done this, save the file and close it. Try the links now. If they don’t work try the next solution.

Method #3: Disable WordPress Plugins and Themes

If the “WordPress links not working” error is still there, this solution might help.

Try to disable the plugins and themes to see if they are causing the problem. To fix the issue, you should have access to your WP dashboard. Here are the steps for disabling them.

  • Go to Plugins > All Plugins
  • For each of your plugin, try to Deactivate it one by one.
  • After you disable each plugin, go back if the error still occurs.
  • If the error still shows, reactivate the plugin, and go to the next one.
  • Repeat the process until the error stops.
  • If the error still shows after trying everything, move to the next method.

Method #4: Fix the Local Servers

Sometimes, the error might be caused by a server issue, which can be difficult to manage. Beginners need to contact an expert. You can try to enable the rewrite_module in the Apache configuration of your MAMP, WAMP, or XXAMP.

Ending thoughts on the WordPress links not working issue

WordPress links not working can be a significant error, but they can be eradicated with some trial and error, using one of the above-mentioned fixes.

If you enjoyed reading this article about WordPress links not working, you should read these as well:

Up Next:

How to fix "installation failed, could not create directory"

How to fix "installation failed, could not create directory"