A TermsFeed AutoTerms legal page returns 404 Not Found most often because nobody published it yet. With pretty permalinks, legal pages live at /termsfeed/<page slug>/, such as /termsfeed/privacy-policy/, where termsfeed is the Legal pages slug in General Settings.

Open TermsFeed > All Legal Pages, where each published page shows its address as a link above the row actions. Compare that address with the link that fails.

The questionnaire creates the legal page as a draft, and WordPress shows a draft only to logged-in users who edit it, so visitors get 404 Not Found. Review and publish a new legal page with Edit and Publish WordPress Legal Pages.

The Status column of All Legal Pages shows draft, and the Shortcode column shows "N/A" with the tooltip "Publish page to get shortcode."

  1. Open the legal page, review the generated text, and click the "Publish" button.
  2. Clear the page cache, close every private window, open a new one, load the address from All Legal Pages, and confirm that the page opens.

Cause 2: The rewrite rules have not refreshed

A published legal page returns 404 Not Found while the WordPress rewrite rules, the address patterns it matches each request against, miss its address. The plugin rebuilds them on the first admin page you open after activation, and after a change of the Legal pages slug in the admin. A restored database brings back the rules stored at backup time. A Legal pages slug changed outside the admin, such as with wp option update, keeps the old rules.

The address of a page with the Status publish returns 404 Not Found, while your posts and pages open normally.

  1. Open Settings > Permalinks and click the "Save Changes" button without changing anything, which rebuilds the rewrite rules.
  2. Clear the page cache, close every private window, open a new one, load the legal page address, and confirm that it opens. A page that still returns 404 Not Found points to another post type with the base termsfeed.

A developer rebuilds the rules with WP-CLI.

wp rewrite flush

The Legal pages slug works only with pretty permalinks, so a site on plain permalinks has no /termsfeed/privacy-policy/ address. A link with that address returns 404 Not Found from the web server, or WordPress shows the home page. The legal page opens at /?wpautoterms_page=privacy-policy.

Settings > Permalinks shows "Plain" selected, and TermsFeed > Settings shows "Your Permalinks structure is set to plain. For this option to work, you need to change your Permalinks structure to post name." under "Legal pages slug". Read how the Legal pages slug works in WordPress Legal Page Settings.

  1. Select "Post name" in Settings > Permalinks and click the "Save Changes" button.
  2. Check your menus and hand-written links, because a new permalink structure changes the address of every post and page.
  3. Clear the page cache, close every private window, open a new one, load the legal page address, and confirm that it opens.

A link written before you changed a page slug, or the Legal pages slug, points to an address that no longer exists. The plugin does not add a redirect from the old address. The footer legal links of the Links to Legal Pages kit follow the new address, and so does [wpautoterms page_link="privacy-policy"] after a change of the Legal pages slug.

A failing link with a different slug, or a different first segment such as termsfeed instead of legal, than the address on All Legal Pages was written before the change. Add legal pages to menus and widgets with Add Legal Pages to WordPress Menus.

  1. Update the custom links in Appearance > Menus, or in the navigation block of the Site Editor.
  2. Update the links in posts, pages, and widgets, or replace each one with a page_link shortcode such as [wpautoterms page_link="privacy-policy"].
  3. Point the old address to the new one with the redirect feature of your SEO or redirect plugin, for visitors who saved it.

Cause 5: Another post type or a page uses the base termsfeed

WordPress uses the first rewrite rule that matches, so another post type with the base termsfeed takes the legal page addresses when its rules come first. A regular page with the slug termsfeed never hides the legal pages, because WordPress serves the legal pages archive at /termsfeed/. Its child pages return 404 Not Found, because the legal pages rule catches their addresses.

Deactivate your other plugins one at a time. After each, open Settings > Permalinks to rebuild the rules, and reload the legal page address until it opens. A developer runs wp rewrite list --match=/termsfeed/privacy-policy/ instead, where the query of the first rule names the post type WordPress serves.

For a post type from another plugin, change the Legal pages slug in TermsFeed > Settings to an unused word, such as legal. Then update the links that used the old address. For a regular page whose child pages fail, give that page another slug.

A second legal page of the same type receives a numbered slug such as privacy-policy-2 when you publish it. Links to privacy-policy then return 404 Not Found once the older page is in the trash. The Shortcode column of All Legal Pages shows a slug that ends in a number.

Edit the slug of the newer page back to privacy-policy, which WordPress accepts once the older page is in the trash. Check the slug each type of legal page receives in Create a Privacy Policy in WordPress.

  1. Open TermsFeed > All Legal Pages and confirm that the Status column shows publish.
  2. Clear the page cache, copy the address above the row actions, close every private window, open a new one, and open the Network tab of DevTools with the Doc filter.
  3. Load the address and confirm status 200 for the page.
  4. Click the footer link to the page, which the Links to Legal Pages kit prints while it is on, and confirm status 200.
  5. Open each menu item that links to the page and confirm that it reaches the same address.