How to Fix Permalinks 404 Errors on WordPress

One of the questions we have been asked lately is how to fix permalinks 404 errors on WordPress and it seems like it is a very common problem around the globe.

There are numerous reasons you may be asking the same question whether you are just starting your new blog or having a new website or a change of domain, one of the main factors will be setting the permalinks structure for the URL’s to be search engine friendly.

There are a few plugins I recommend to assist with SEO and to avoid any 404 errors. The first plugin I advise clients to use is Yoast SEO plugin. There are others on the market to use such as WordPress All In One plugin which is also fine but doesn’t have as many features as Yoast.

The next plugin I advise people to use is Redirections. This plugin lets you add 301 redirects from the old URL to the new URL, You also have the ability to redirect traffic from referrers and user-agents as well.

The third plugin i suggest is Broken Link Checker. This is a great little plugin and does exactly as it says which enables you to either fix the link or redirect it with a 301 redirect as soon as possible.

You now have your WordPress site all ready to go and before you create your first post you need to set the permalinks structure. Depending on what type of website you are running depends on your permalink structure. If you are a news website you may wish to set the structure to date and postname or other websites just opt for the postname.

If you are opting to just use postname you can set the structure under the settings/permalinks tab in the back-end of WordPress. If you want to use postname only you can do this in the custom settings by using %postname%.

Once you have saved this you might then find that your pages you have already created or are creating reply with a 404 error.

Fix Permalinks 404 Errors in a Few Easy Steps

Well you will be happy to know there is a very simple solution on how to fix permalinks 404 errors .

First of all you will need to access the server either by FTP or how ever you access your files. If you already have an .htaccess file then you just need to edit it. If you do not have one then open notepad, I prefer to use Notepad++ for editing but it is entirely up to you.

Copy and paste this into the file –

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

and then save as HTACCESS.txt and then upload the file to the webspace where your website is. Make sure the filename is named correctly .htaccess and set the file permissions to 777 to make it writable.

Go back to your WordPress installation under permalinks and set the structure you require and save. Next go back to the FTP file and change the file permissions back to 644.

Everything now will be working perfectly fine as you want it to be.

Posted in Blog

Leave a Reply

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

*

 

In Archive