If you’re using pretty permalinks – which you are, with this type of URL – WordPress will automatically try to figure out any URL that you type in.
In your example URL, “company” is the slug. So, when you type in example.com/company, WordPress uses that slug to figure out “Okay, I only see one post with the slug ‘company,’ and that one is a subpage of ‘products,’ so I’ll send them there.”
WP does redirect rather than just displaying the page at that URL, so you shouldn’t run into issues with search engines indexing the shorter URLs. If you want to be doubly certain, make sure you have canonical URLs set (such as by using an SEO plugin, or a theme that adds them for you) to tell search engines the long URL is the desired one, and don’t link to the short version.
Related Posts:
- Remove parent category from permalink? Basically only have the child category?
- Category archive by year with permalink support /category/YYYY
- Add a URL prefix to permalinks of one category of posts only
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- Allow duplicate permalink slugs for posts in different categories
- Force WordPress to Show Pages Instead of Category
- How do I use the same post slug for different Categories?
- How to remove category from wordpress url?
- How to create a custom url for a category [closed]
- How to change the category in URL for posts in multiple categories?
- 404 error on subcategory pages
- Changing the category permalink structure
- Category links suddenly started giving 404 errors
- Exclude subcategories from the url
- How to display only the parent category in the permalink
- Categories and Tags returning 404 on the sidebar when using ugly permalinks
- Permalinks – Different structures for different categories?
- Plural Category Base Slug On Category Archive Page
- custom permalinks for category archive ( custom base and no parent slug )
- Removing category base form links messes up the parent-child behavior
- New categories are now going to 404s
- Duplicate Category and Page URL loads Category instead of the Page
- Best way to programmatically link to multiple categories (union/intersection) [closed]
- Default category link for a custom category is a broken link
- How to set up Author archives with sub category URL
- wordpress wp_list_categories
- How to filter posts by format and category via url?
- How to Filter categories in the permalink structure
- Specifying multiple categories in URL (permalink)?
- Possible to make a subdirectory that loops through a single category?
- WordPress subcategories return 404 in custom template
- Add “page-a” slug to category link if user visit category link from “page-a”
- Redirect category to url with /category
- Category being displayed without base parmalink
- wordpress sub-category ( lowercase letters + non-latin characters ) = 404
- Removing post category base giving Error 404
- Categories showing page not found
- The default code for “posts_nav_link” on category.php isn’t working
- Read GET parameters in APACHE Mod Rewrite rules for WordPress categories in Posts
- Have different permalinks based on category
- Permalinks: display just one kind of wp category in the posts url
- Multiple URL’s based on category for one post
- Same base for category and post
- category permalinks
- Hide uncategorized when no category set
- Remove subcategory and category with some rules from permalink
- WordPress URL Rewrite for dynamic and customized URL
- Removing subcategories from permalinks [duplicate]
- Older entries link within category page
- How can you change the permalink for pages?
- Get category URL knowing it’s id
- How to add a post without assigning to a category?
- How to get Next/previous_post_link to go through articles in top parent category
- Hide the word ‘category’ from my permalinks
- How to Link to Most Recent Custom Post of Same Term
- Redirect Changed Permalink on wordpress
- Category url generate 404 error
- How to remove one specific category (uncategorized) from post permalinks
- Custom Permalink with child categories creating 404
- How do I retrieve the category ID (ugly permalinks) in my sub-navigation menu?
- How do I change the category permalink structure?
- Redirect year month day postname permalink structure to category postname structure
- url for posts for a date within a category
- Advanced permalinks structure
- Categories show 404 error on multisite installation
- Need help with major category and permalink re-organization
- Subcategory Page URL to Display Only Posts from that Subcategory?
- How to use category slug with a regular page
- A different permalink structure for different categories
- How to remove category name for only one category?
- How to set the same base url for two different taxonomies?
- Subcategories randomly not working after page/post/category edit in wordpress. Fix: saving permalinks twice
- Is it possible to set up blog categories without changing permalink structure
- Remove WP Core canonical for category pagination
- Subcategory Page 404ing
- Remove “category” from permalink with add_rewrite_rule
- When category name and title are the same … WP will select archive.php instead of single.php
- Accessible Subcategory URL’s pages without using .php hack
- WordPress and “pretty permalink”
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- Group Posts by First Letter of Title categories
- Using categories and pages in menus
- Page Type with Category Link
- hierarchical taxonomy in permalinks? using same slug
- Change category base based on category
- Allow duplicate permalink slugs for posts in different categories
- Changing Permalinks for Category Pages Only
- Link categories to last post
- How to include first assigned category in the post URL?
- How do I hide posts in a category from all listings but still allow the posts to be viewed?
- Create custom Perma link
- Custom permalinks structure
- How to get category slug link? ( include parent categories)
- Category archive page has two URLs even when default theme is active with no active plugins
- Remove “?category=” in the URL wordpress ajax filter work for category
- Use same wordpress category base and tags as the prefix as the post permalink
- WordPress how to remove parent slug from category URLs
- How to remove the category from the url only for a specific category of articles on wordpress
- Display last category child in permalink
- How do we ReWrite HTACCESS to point a cat/subcat Product URL, to Cat/ only?