OK, so you’ve used /
as you taxonomy slug. It means that URL for your term is:
http://example.com/my-sample-taxonomy-term/
And for pages it will be:
http://example.com/my-sample-page/
As you can see, there is no way to guess, what type of post should WP search for.
WordPress processes the URLs looping through registered Rewrite Rules and matching given URL against regular expression assigned to current rule.
That means that in your case WP will take first rule that will match correctly and try to display that type of object. And because there are two different objects registering rules that are in conflict, then you’ll get 404 errors for some of them.
Related Posts:
- custom taxonomy and pages rewrite slug conflict gives 404
- Remove taxonomy base or term from url
- Best pratice to make taxonomy terms translatable without changing slugs?
- Removing taxonomy base using WP rewrite
- Custom taxonomy on permalink
- Custom taxonomies, with custom rewrites/slug, AND loading a taxonomy archive template from a plugin
- URL rewrite rules for multiple taxonomies query
- Rewrite rule for custom taxonomy
- Nice URLs for a Custom Post Type List with a Shared Custom Taxonomy?
- How do I rewrite a url to use %taxonomy% instead of %category% when multiple taxonomies are present?
- Pros and cons of using [taxonomy name] in place of [category name]?
- WP redirects pretty permalink to query string
- Removing the base “Author” or changing it to something else. is it possible?
- Permalinks for quote authors
- Sorting Posts Via Custom Taxonomy Values Using Checkboxes?
- Add parent/child taxonomy to custom post type url
- WPML Translating a term/taxonomy programmatically
- Keep taxonomy base name in post permalinks
- Permalinks for custom taxonomy stopped to work
- Taxonomy with_front causes all
- 404 error- issues with pages after adding custom rules for posts
- How to overwrite registered taxonomy url from vendor plugin in child theme
- How Can I Change a Taxonomy URL Based On The Originating URL?
- How to add a Rewrite Rule / Category Structure
- Rewrite URL for taxonomy listing
- Custom permalinks with hierarchical taxonomy – getting PHP warning
- Change the permalink URL to include a taxonomy term
- Rewrite Rule Working for all but one of the taxonomies created
- How to Rewrite Taxonomy URL to Include the Post Type as the Second Segment of the URL?
- Taxonomy Pagination Rewrite
- woocommerce custom product category template
- Add Taxonomy Subcategory To Permalink
- how to change permalinks format for pagination?
- Custom Taxonomy and Rewrite URL
- How do I create a permalink structure with 2 taxonomies
- Rewrite Rules returning wrong data
- Pagination on Custom Tax Pages Removes Spaces from Query Vars
- How to rename custom taxonomy URL with extra words
- Custom URLs in Custom Search Results
- How to change url for taxonomy pages?
- Query custom taxonomy by term id?
- Custom Taxonomy specific to a Custom Post type – rewrite URL
- Permalink Problems
- How to add hierarchical taxonomy with parent child relation to URL?
- Clean Custom URL for Serach + Custom Taxonomy
- Custom rewrite permalink doesn’t work
- forward/redirect taxonomy archive of term to a page with same name
- URL rewriting taxonomy term
- How can i fix a 404 error when targeting custom taxonomy slug ?
- Permalink issues with custom taxonomies
- WPML taxonomies not translated
- Taxonomy URL rewrite whilst keeping filtered posts?
- Rewrite Search URL Permalink For CPT Custom Taxonomies
- How can I rewrite the URL of my custom taxonomy to include the year?
- How to change Custom Permalink for Taxonomy? (remove the slashes from term-slug)
- How do I get the correct URL?
- How to structure all custom-taxonomy with three verbs(a,b,c) and route them accordingly?
- Rewriting url for multiple Taxonomies and Custom Post Type
- Custom rewrite url structure for several custom taxonomy (NOT pos_type)
- Remove taxonomy name and add .html extension in the custom taxonomy term URL
- How to paginate with an query var appended to permalink?
- Hierarchical taxonomies in permalink cause 404 for sub term archive
- Permalinks incorrectly inserting multiple categories
- Permalink structure not working with Custom Taxonomy (URL like ./taxonomy/category/postname)
- add_rewrite_rule using custom taxonomy and year
- Need help understanding a rewrite with multi-level taxonomy
- Taxonomy to WordPress Permalinks of custom post type
- Multiple Taxonomy in URL/Query – No Custom Post Type
- Creating a page for custom taxonomy archive
- Custom Taxonomy Archive URL rewrite
- Later change of taxonomy slug base not changing permalink
- Rewrite URL for a specific taxonomy [duplicate]
- Is there a way to create a single rewrite rule to handle multiple variables depending on what is present?
- Custom taxonomy still using query URL after fixing error
- Using wp_query is it possible to orderby taxonomy?
- Mixing custom post type and taxonomy rewrite structures?
- “tax_query” parameter not working with WP_Query
- How do I exclude a custom taxonomy from the post loop
- get_posts assigned to a specific custom taxonomy term, and not the term’s children
- How can I get only parent terms?
- How to modify a taxonomy that’s already registered
- Retrieve posts by term id custom query
- Change order of Custom Taxonomy List
- Get the the top-level parent of a custom taxonomy term
- get_the_term_list without links in 3.1
- Inserting terms in an Hierarchical Taxonomy
- get_terms – only top level
- Rewriting a custom-post-type permalink with taxonomy term?
- Custom taxonomy terms not showing as list Gutenberg Editor
- Altering the appearance of custom taxonomy inputs
- How to only list the child terms of a taxonomy and not their parents?
- Get term SLUG by term ID
- Is ACF being a honey trap? [closed]
- Get term name from term ID?
- Check if Current Category has Children
- How to use taxonomies on attachments with the new Media Library?
- Hierarchical taxonomy UI
- WordPress taxonomy radio buttons
- How to prevent new terms being added to a custom taxonomy?
- Custom taxonomy, get_the_terms, listing in order of parent > child