A small WordPress setting can make your entire site look broken. Change the permalink structure, move to a new domain, enable SSL, or switch hosting, and suddenly posts return 404 errors while the homepage still works.

The good news? WordPress permalink errors usually come from rewrite rules, URLs, caching, or server settings. We can check each one without rebuilding the site or deleting valuable content.

Let’s start with the fastest fix, then move into the server-level problems that need closer attention.

Key Takeaways

  • Saving the permalink settings again often refreshes WordPress rewrite rules.
  • A working homepage with broken posts usually points to a rewrite or .htaccess problem.
  • Site URL changes, SSL settings, plugins, caching, and migrations can all affect permalinks.
  • Always back up your site before editing server files or changing database URLs.
  • Reliable WordPress hosting can reduce configuration problems and make recovery faster.

Why WordPress Permalinks Break After Site Changes

Permalinks are the permanent web addresses WordPress creates for posts, pages, categories, and other content. A structure such as /sample-post/ is easier to remember than a URL filled with numbers and question marks.

WordPress uses rewrite rules to turn those friendly URLs into the correct content. Those rules connect the visible URL to the right post or page behind the scenes. When site settings change, the connection can become outdated.

Common triggers include:

  • Changing the permalink structure in Settings > Permalinks
  • Moving WordPress to a new domain or hosting account
  • Switching from HTTP to HTTPS
  • Changing the WordPress address or site address
  • Installing or removing a plugin that creates custom post types
  • Restoring a backup
  • Changing Apache, Nginx, CDN, or caching settings
  • Moving from a subdirectory to the root domain

The symptoms can look similar, but the cause matters. A 404 error on every post suggests a different problem from a redirect loop or a mixed-content warning.

What you seeLikely cause
Homepage works, posts show 404Rewrite rules were not refreshed
Admin redirects repeatedlySite URL, SSL, or cookie mismatch
Old URLs redirect incorrectlyDomain or permalink structure changed
Pages work, custom post types failPlugin rewrite rules need refreshing
Changes appear inconsistentBrowser, WordPress, or CDN cache

We can also check the WordPress permalink settings documentation before making larger changes. The goal is to fix the route, not mask the error with random redirects.

Refresh the Permalink Rules First

The quickest solution is often the one people skip. We need to save the permalink settings again, even if the selected structure looks correct.

Log in to WordPress and open Settings > Permalinks. Note the current structure, then click Save Changes. WordPress rebuilds its rewrite rules when the settings are saved.

You don’t have to choose a new format. Saving the existing option is enough in many cases.

Open the homepage in a new browser tab. Then test:

  1. A recent blog post
  2. An older post
  3. A standard page
  4. A category or tag archive
  5. A custom post type, if your site uses one

Test more than one URL. A single working page doesn’t confirm that every rewrite rule has returned to normal.

If the error remains, select Plain permalinks, save the change, then select your preferred structure and save again. This forces WordPress to write the rules twice. We should use this method carefully on a live site because changing URL structures can affect search engines and existing links.

Don’t leave the site on Plain permalinks unless you have a clear reason. A URL such as ?p=123 gives visitors less context and can make content harder to share.

If only custom post types are broken, open the plugin or theme that created them. Many plugins register their own rewrite rules. Deactivating and reactivating the plugin can refresh those rules, but we should avoid doing that during a busy sales period without a backup.

Check the Site URLs and SSL Settings

WordPress stores two important addresses under Settings > General:

  • WordPress Address (URL), where the WordPress files are installed
  • Site Address (URL), the public address visitors use

These addresses normally match, but not always. A mistake in either field can cause redirects, missing images, login problems, or inaccessible pages.

Check the spelling, domain extension, and protocol. If the site uses SSL, both addresses should normally begin with https://. Watch for common errors such as:

  • http:// in one field and https:// in the other
  • A missing www
  • An extra slash at the end
  • A temporary hosting URL left in place
  • A domain name that points to the old website

Save the settings only after confirming the correct live domain. If WordPress immediately redirects you away from the admin area, we can check the values in the database or use the hosting control panel.

A site migration can also leave old URLs inside post content, menus, image paths, and serialized plugin data. Search-and-replace tools can help, but careless database changes can damage stored settings. We should create a complete backup first and use a tool designed for WordPress migrations.

SSL adds another layer. If the site switches to HTTPS but the hosting account still redirects requests incorrectly, visitors may see too many redirects. Check the SSL certificate, force-HTTPS setting, and any CDN rule. These settings must point in the same direction.

A secure certificate is easier to manage when the hosting account includes SSL setup and monitoring. ZADiC hosting plans include features built for site owners who want fewer manual server tasks, along with support when a domain or SSL change doesn’t go as planned.

Repair .htaccess or Server Rewrite Rules

When the homepage works but every post returns a 404, the server may not be reading WordPress rewrite rules. This is common on Apache hosting when the .htaccess file is missing, empty, or not writable.

Connect through cPanel File Manager or FTP and look in the WordPress installation folder. Turn on the option to show hidden files. The .htaccess file begins with a dot, so it may not appear in a normal file list.

Before editing it, download a copy. We don’t want a small mistake to remove access to the entire site.

For a standard WordPress installation, saving the permalink settings often recreates the file. If it doesn’t, check whether the file permissions allow WordPress to write to it. Your host can also confirm whether Apache has mod_rewrite enabled and whether the directory allows overrides.

Don’t replace a custom .htaccess file without checking it first. Security tools, redirects, caching systems, and other applications may have added rules. Deleting everything can fix one issue while creating three more.

Sites running on Nginx don’t use .htaccess in the same way. The rewrite rules belong in the server block configuration, which is normally managed by the hosting provider. Ask the host to confirm that WordPress permalinks are supported and that requests are passed to index.php.

The WordPress rewrite API documentation covers how WordPress creates and registers rewrite rules. We don’t need to change those rules by hand unless a developer or hosting technician has identified a custom requirement.

This is where hosting quality matters. With cPanel hosting, we can inspect files and settings through a familiar control panel. WordPress hosting can take more of the server configuration off our hands. If the site needs higher traffic capacity or custom control, Web Hosting Plus or a VPS gives us more room to manage rewrite, PHP, and caching requirements.

Test Plugins, Themes, Caches, and Redirects

If refreshing permalinks doesn’t work, we need to find out whether another tool is interfering.

Start with caching. Clear the cache in WordPress, your hosting account, your CDN, and your browser. A cached 404 can make a fixed URL appear broken for several minutes or longer.

Next, test plugins. Security, redirect, SEO, caching, and custom post type plugins can all change how URLs behave. Temporarily deactivate plugins, then test a broken page. If the page works, reactivate plugins one at a time until the problem returns.

We should use a staging site when possible. On a live store or business website, make changes during a quiet period and keep a maintenance plan ready.

The active theme can also affect custom URLs. Switch briefly to a default WordPress theme, such as Twenty Twenty-Four or another available default, and test again. If the error disappears, the theme may contain an outdated rewrite rule or custom routing code.

Redirect plugins need special attention after a domain or SSL change. Look for rules pointing to the old address, redirects that send every page to the homepage, and chains that pass through several URLs. Remove duplicate rules and keep one direct redirect wherever possible.

When a post shows a 404 only at one old address, the issue may not be a broken permalink. The URL may have changed. In that case, create a relevant 301 redirect to the new page instead of forcing every missing URL to the homepage.

Prevent Permalink Problems During Future Changes

We can prevent many WordPress permalink errors with a short routine before changing site settings.

Create a full backup of the files and database. Record the current domain, permalink structure, active plugins, SSL status, and any custom redirects. If the change involves hosting, confirm that the new server supports the required PHP version, database, SSL, and rewrite configuration.

After the change, test the site as a visitor would. Open the homepage, a post, a page, an image, a category archive, the contact form, and the login page. Check both desktop and mobile links.

Keep a simple record of every major URL change. This makes it easier to restore settings or explain the problem to hosting support.

Good hosting support can save hours here. ZADiC provides WordPress, cPanel, Web Hosting Plus, and VPS options, so we can start with an easy managed setup and move to more powerful hosting as the site grows. Features such as free SSL on many plans, monitoring, backups, and 24/7 support give us a stronger safety net when settings change.

Conclusion

Most WordPress permalink errors don’t require a full rebuild. We can usually restore the rules by saving the permalink settings, checking the site URLs, clearing caches, and testing server rewrite support.

If the homepage works while posts fail, start with permalinks and .htaccess before changing the database. A stable hosting setup, regular backups, and reliable support turn a stressful 404 problem into a manageable fix.

We use cookies so you can have a great experience on our website. View more
Cookies settings
Accept
Decline
Privacy & Cookie policy
Privacy & Cookies policy
Cookie name Active

Who we are

Our website address is: https://zadic.net.

Comments

When visitors leave comments on the site we collect the data shown in the comments form, and also the visitor’s IP address and browser user agent string to help spam detection. An anonymized string created from your email address (also called a hash) may be provided to the Gravatar service to see if you are using it. The Gravatar service privacy policy is available here: https://automattic.com/privacy/. After approval of your comment, your profile picture is visible to the public in the context of your comment.

Media

If you upload images to the website, you should avoid uploading images with embedded location data (EXIF GPS) included. Visitors to the website can download and extract any location data from images on the website.

Cookies

If you leave a comment on our site you may opt-in to saving your name, email address and website in cookies. These are for your convenience so that you do not have to fill in your details again when you leave another comment. These cookies will last for one year. If you visit our login page, we will set a temporary cookie to determine if your browser accepts cookies. This cookie contains no personal data and is discarded when you close your browser. When you log in, we will also set up several cookies to save your login information and your screen display choices. Login cookies last for two days, and screen options cookies last for a year. If you select "Remember Me", your login will persist for two weeks. If you log out of your account, the login cookies will be removed. If you edit or publish an article, an additional cookie will be saved in your browser. This cookie includes no personal data and simply indicates the post ID of the article you just edited. It expires after 1 day.

Embedded content from other websites

Articles on this site may include embedded content (e.g. videos, images, articles, etc.). Embedded content from other websites behaves in the exact same way as if the visitor has visited the other website. These websites may collect data about you, use cookies, embed additional third-party tracking, and monitor your interaction with that embedded content, including tracking your interaction with the embedded content if you have an account and are logged in to that website.

Who we share your data with

If you request a password reset, your IP address will be included in the reset email.

How long we retain your data

If you leave a comment, the comment and its metadata are retained indefinitely. This is so we can recognize and approve any follow-up comments automatically instead of holding them in a moderation queue. For users that register on our website (if any), we also store the personal information they provide in their user profile. All users can see, edit, or delete their personal information at any time (except they cannot change their username). Website administrators can also see and edit that information.

What rights you have over your data

If you have an account on this site, or have left comments, you can request to receive an exported file of the personal data we hold about you, including any data you have provided to us. You can also request that we erase any personal data we hold about you. This does not include any data we are obliged to keep for administrative, legal, or security purposes.

Where your data is sent

Visitor comments may be checked through an automated spam detection service.
Save settings
Cookies settings