Put this code into your function.php.
add_filter('redirect_canonical','pif_disable_redirect_canonical');
function pif_disable_redirect_canonical($redirect_url) {
if (is_singular()) $redirect_url = false;
return $redirect_url;
}
Hope this will help you
Related Posts:
- Custom Taxonomy Endpoint Pagination using paginate_links()
- 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
- WP redirects pretty permalink to query string
- Add parent/child taxonomy to custom post type url
- 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 to add a Rewrite Rule / Category Structure
- Custom permalinks with hierarchical taxonomy – getting PHP warning
- how to change permalinks format for pagination?
- Custom Taxonomy and Rewrite URL
- Rewrite Rules returning wrong data
- How to change url for taxonomy pages?
- Rewrite Search URL Permalink For CPT Custom Taxonomies
- 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)
- Hierarchical taxonomies in permalink cause 404 for sub term archive
- Permalink structure not working with Custom Taxonomy (URL like ./taxonomy/category/postname)
- add_rewrite_rule using custom taxonomy and year
- 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?
- How to create custom URL routes?
- remove “index.php” from permalinks
- Change the “page” slug in pagination
- custom taxonomy and pages rewrite slug conflict gives 404
- Remove taxonomy base or term from url
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- Can’t get a custom template taxonomy page to display
- Problem with add_rewrite_rule and pagination (paged and page query_vars)
- Custom Taxonomy not working with posts_per_page in new WP_query (pagination problem)
- get_query_var(‘paged’) always returns empty
- How to modify URL structures in custom post types and taxonomies or terms
- Archive page with multiple taxonomies rewrite
- How to change default page slug?
- Disable wordpress pagination URL rewrite for specific page
- How to enable hierarchical permalinks for hierarchical taxonomies
- Taxonomy archives based on Custom Post Type
- URL rewrite rules for multiple taxonomies query
- Permalink rewrite with custom post type and custom taxonomy
- Mod_rewrite delete parameter in 301 Redirect
- Rewrite rule for custom taxonomy
- Nice URLs for a Custom Post Type List with a Shared Custom Taxonomy?
- How to pass posts_per_page and paged params query vars to custom taxonomy archive urls?
- How do I rewrite a url to use %taxonomy% instead of %category% when multiple taxonomies are present?
- WP Rewrite Rules – Custom post type & taxonomy
- Pros and cons of using [taxonomy name] in place of [category name]?
- Remove base slug in CPT & CT, use CT in permalink
- Need to make a php file inside theme accessible via url
- term_link() filter or rewrite and howto?
- Custom Taxonomy terms with latest post ordered by date pagination issue
- Removing the base “Author” or changing it to something else. is it possible?
- Permalinks for quote authors
- Listing child terms of parent term
- Taxonomy page lead to 404 page on pagination
- Evaluating a external rewrite rule before internal wordpress rewrite rule
- Sorting Posts Via Custom Taxonomy Values Using Checkboxes?
- Remove pagination from WooCommerce product categories on admin edit navigation menus
- Custom Permalink Tag breaks Pagination
- Add ‘articles’ prefix before blog posts url without affecting pagination
- Custom Permalink for Taxonimie and Custom Post Type
- how to get archive urls with same origin for custom types and terms?
- How do I get WordPress URL rewrites into Sitemap?
- Keep taxonomy base name in post permalinks
- Remove “/page/1” from the URL
- Pagination problem
- Rewrite rule to load images from production does nothing
- Rewrite Rules Are Redirecting and Not Passing VARs
- Create multiple rewrite endpoints for custom taxonomy archive
- WordPress rewrite rules don’t need ^?
- Permalink Structure CPT With Custom Taxonomy Fails
- Permalinks for custom taxonomy stopped to work
- Custom rewrite not working
- How Can I Change a Taxonomy URL Based On The Originating URL?
- Disable Pagination on Pages
- Remove url rewrites for registered taxonomies
- WP is ignoring .htaccess rewritten URL
- ReWriteRules and WordPress Multi-Sites with Sub Directories
- Rewrite URL for taxonomy listing
- Rewrite wp-login.php URLS to static pages?
- Pagination on custom taxonomy
- Change the permalink URL to include a taxonomy term
- Rewrite custom post type URL parameters
- Changed pagination URLS to use p= instead of paged=
- Rewrite URLs – Custom Post Type – Post Slug, Taxonamy Slug
- URL Rewriting for PHP script on an image URL
- Rewrite Rule Working for all but one of the taxonomies created
- How to create pagination for custom taxonomy in WordPress
- Change pagination url format
- How to remove specific category from URL in WordPress
- Page and Post return 404 with custom taxonomy
- Customize Custom Post Type URL
- Rewriting “pretty” blog category URL with htaccess / add_rewrite_rule() causes 404 page
- How do I change the custom taxonomy slug to be the same as the custom post type slug?
- How to Rewrite Taxonomy URL to Include the Post Type as the Second Segment of the URL?
- Custom Rewrite rule to captured post (rewrite rule to rewrite rule)