Sometimes you get a ‘Page not found’ error 404 when you click a link in wordpress. Even as the page was created and linked with wordpress the link is broken.
It usually happens when you update a plugin or wordpress itself and can be fixed in 99% of the cases with a simple recreation of the permalinks.
What are permalinks
Permalinks are the “structure” your links (URL) look like. They define if your URL e.g. to your blog posts is organised with month and years in the URL or with a custom string like ‘blog’ or ‘news’.
How to recreate the permalinks
Recreating these permalinks structure is quite simple.
- Log into your wordpress backend
- Navigate to >Settings >Permalinks
- Select any permalink structure and save
- Then select the permalink structure you want and save again
That’s it. Every time you change something on the permalink structure and save wordpress creates all links based on the selected permalink structure and updates them in your database.