You may not like this answer, but it’s a quite simple, and probably most recommended. Don’t set these pages as child pages.
There are numerous ways of getting pages to list out in a child-like order – WP Menus.
Use that instead, and you will cause less stress on your WordPress installation – having to set and forget things is much worst than setting them somewhere else.
The only downside would be organization in the back end, but you can either customize the List Table, or create a custom post type to hold all your products in their own area.
Related Posts:
- Remove parent slug for child pages
- Change author slug and functionality
- How can I add a page’s ID to its permalink using WP_Rewrite?
- Share same Slug for a Custom Post Type and 2 Taxonomies
- wordpress how to replace url /bar with foo/bar for custom post type
- Bulk append URL (add word to slug)
- add_rewrite_rule – Page Slug from “/foo-bar/” to “/foo/bar/”
- Custom child page permalink
- Is it possible to get a page link from its slug?
- Need help with add_rewrite_rule
- remove “index.php” from permalinks
- How do I add /blog/ as a prefix to permalink structure for blog posts, tag pages, etc.?
- Passing and retrieving query vars in wordpress
- Permalink format: singular or plural
- How does WordPress handle permalinks?
- Pretty permalinks for search results with extra query var
- WordPress slug issue with non-latin characters
- How to get pretty URLs with add_query_arg in permalinks
- Creating custom permalink structure for languages
- Custom post type permalink endpoint
- How to remove dates from existing permalinks?
- Getting the Site URL Including the Front Base
- Using $_GET variables in the URL?
- Removing the redirect after changing a page’s slug
- Must slugs be unique?
- How does wordpress keep track of post id when post id is not used in permalinks?
- Stop WordPress from reserving slugs for media items?
- Including category-base in a post permalink results in 404
- Change slug on post creation
- WordPress thinks my custom route is a 404
- Prevent WordPress from abbreviating-long-slugs…-in-the-admin
- Post type child of another post type
- How to prevent apostrophes and quotes from appearing in permalinks?
- Date based URLs for custom posts and pagination
- How to add a custom URL placeholder to author archives?
- How to custom change author base without $this->front?
- URL rewrite based on a custom field value
- Why don’t WordPress post slugs allow accents?
- Update URL Snippet to Canonical Permalink URL
- Is It A Good Idea To Change Author Slug (user_nicename field) Directly In MySQL DB?
- How to prevent the default home rewrite to a static page
- How can I force WordPress to redirect to canonical permalinks?
- When creating a WordPress page, a “-2” suffix is added to new pages’ permalinks
- “.#[random-char-string]” being inserted at end of URLs
- How to i18n slugs for templates?
- How to change author base without front
- permastruct for custom post type not working in one of four cases
- URL Rewrite + Page + Custom Post Type = Unusual Redirect
- Handle category name URL rewrite before different post type slugs
- Pretty Permalinks
- Make post slug have priority over category slug
- How to create a permalink structure for posts in a specific category
- How to remove the index.php in the url?
- How to Remove Slug From Database?
- How to make draft posts or posts in review accessible via full url / slug?
- How to map permalinks with accented letters to sanitized slugs?
- Remove subfolders from URL
- Replace WordPress %postname% suffix with %postid%?
- Prepend meta_value to permalink of post
- Add custom directory in URL
- Limiting the number of words or characters in the slug/permalink
- Using two permalinks for one post
- flexible rewrite ‘ramble’ URLs with WordPress
- How can I Rewrite a ‘page’ URL based on query string parameters?
- Custom rewrite rules for a $_GET request
- Nice RSS Feed URLs for each custom post type
- Change the custom post type permalink
- Custom rewrite rules for feeds of custom queries (query_var query strings in URL)?
- custom naming of search permalink /search/
- Auto 301 to full post permalink? (using /posts/%post_id%/%postname%)
- Put post ID on the custom post type URL
- Rewrite url / permalink for default archive – yearly / monthly
- Rewrite user profile URL to be human friendly
- Gutenberg Editor: dynamicaly change slug field with an ACF field
- Plural Category Base Slug On Category Archive Page
- Random Alphanumeric Key URLs
- How to edit the slug/permalink in Gutenberg?
- Make attachment pages require a base url
- Permalinks, Rewrites, Get Variables, Oh My!
- Using WP rather than .htaccess to redirect pages/posts
- Change permalink for a single post entry
- Remove the Parent category from the permalink but leave the child category
- How to Modify Existing Rewrite Rules?
- Rewrite URL for results of a custom WP_Query
- Rewrite URL Parameter And Force ‘Pretty’ Permalink
- rewrite_rule for custom post type doesn’t affect get_permalink
- Add ‘articles’ prefix before blog posts url without affecting pagination
- Apostrophe in permalink results in page not found
- Image Attachment Url Rewrite
- Is using %postname% for permalinks really that bad for performance?
- custom permalink/shortlink with base62 encoded post ID
- Change permalinks with ACF values
- How to generate random numeric slugs for a custom post type?
- template_include not loading -instead goes to index.php
- Rewrite Page with a slug before page name
- Can’t get rewrite rules working
- Share parent path between Custom Post Types and Pages?
- Multilanguage URLs
- Rewrite my default post URL
- Incorrect 404 for pages when using permalink, a static front page, and posts page