Instead of showing a 401, why not just add the URL to a robots.txt and the search engine will ignore it from indexing.
You could also manually add to the headers a meta robots to noindex the page.
You could run this via .htaccess to redirect a page to somewhere else (or show 401), but that would show for both users and search engines.
Related Posts:
- Custom Post type & Taxonomy URL structure
- Combining Multiple Taxonomies in one URL
- Dynamic taxonomy in permalink made all other posts NOT FOUND?
- Remove taxonomy slug when not assigning taxonomy with custom post types
- Remove Taxonomy Slug when No Taxonomy is Assigned to Custom Post Type?
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- Custom Taxonomy breaking pages permalinks
- Custom Post Type with two hierarchical Custom Taxonomies: strategy to generate best permalink structure
- create a subcatagory for a custom post type and out put url as posttype/subcategory/item
- Custom Post Type Advanced Slug
- Custom post type URL structure with site.com/custom_taxonomy_slug/post_name
- Get full control over custom post type url
- Remove Custom Taxonomy Slug only without removing Custom post type slug in permalinks
- Custom Post Type with multiple Custom Taxonomies / Hide Taxonomy Slug from URL
- Is it possible to use a post name in a custom post slug?
- Remove slug from custom post type post URLs
- Rewriting a custom-post-type permalink with taxonomy term?
- Custom Post Type Permalink / Rewrite not working immediately
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Change slug of registered custom post type in child theme
- Templates for Custom Post Types and Custom Taxonomies
- Create permalink structure for one taxonomy archive per custom post type
- How to achieve this permalink -> category-name/custom-post-type-name/post-name
- Custom permalinks
- WordPress Custom Post Type Category Page
- Understanding Permalinks on Custom Post Types
- Add links to post categories and taxonomies in wysiwyg link modal?
- Prepend meta_value to permalink of post
- Best Way to Leverage Custom Post Type Related Content and Consider SEO
- Custom Permalinks for Custom Post Types and Taxonomies
- Custom taxonomy & post slug permalink
- Maintaining WP_Query Relation Among CPT, Custom Taxonomy, Permalinks- CPT UI
- Custom post type category, taxonomy and URL rewrite problem
- Define permalinks for custom post type by taxonomy in WP 3.4
- Custom Taxonomy List links being re-written
- Custom Post Type: How to display all of same taxonomy?
- Remove “-2” from a Toolset Types URL with the same post name
- Programmatically adding posts
- How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name
- multiple url slug for single custom post type
- Custom post types, taxonomies, and permalinks
- How to specify URLS for custom posts & taxonomies
- How do I get the permalink structure to work like this?
- How do I fix permalinks for custom post types that has the same slug as a page?
- Permalinks not working for custom taxonomy on custom post type
- Change Permalink Structure for Tag.php template
- Why does wordpress keep adding postname to my CPT’s permalink in the end?
- Remove post type slug of all post types from permalinks
- Custom Post Type permalink shows wrong page: homepage/index.php
- Custom Post Types, URL rewrite on multiple CPTs
- Custom post type url with category
- Adding custom post category slug in permalink causes 404 error for pages and posts
- Remove the parent slug in a CPT URL
- How can I make the slug of the taxonomy also the slug of the custom post
- Assign same parrent Page to pages AND custom post types
- CPT’s with landing page instead of archive – Url Rewrite?
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- Custom post type and taxonomy permalinks
- Hierarchical permalinks for custom post type and taxonomy
- Custom Post Type – Duplicate Page Slugs
- Remove permalink for custom post type
- Best way to specify “article type” in URL
- Template files for Custom Post Type and Taxonomy
- Rename a slug label
- Using page slug in wp_query
- Listing all slugs?
- How to filter a custom post type by custom taxonomy without 404
- Using page title as a link to term archive
- Is it possible to have hierarchical taxonomy and hierarchical custom post types in one permalink?
- Custom category URL not displaying posts
- Duplicate slug/permalink issue while adding same post name
- how to achieve this permalink abc.com/CPTName/CustomPostTypeCategorySlug/categoryname
- Error 404 change permalink term custom term taxonomy
- Preview url not working outside wp-admin
- Permalinks: custom post type -> custom taxonomy -> custom sub taxonomy -> post
- Pretty Permalinks with CTP and Taxonomies / Hierarchical
- Change permalink incrementor into pseudo-subdirectory
- CPT – Custom Text fields point to new url permalinks
- % encoded URL giving 404 error in WordPress
- Issue with Custom Post Types and Permalinks
- Custom taxonomy archive slug overwrites static page
- Slugs on hierarchical taxonomies
- Pretty permalink structure with multiple (AND OR) taxonomies
- What am I doing wrong with my taxonomy?
- How to have permalink structure based on taxonomy terms
- Multiple post types or single post type with category taxonomy?
- How to switch from custom post type URL to category URL?
- How can I add a “fake” parent into the permalink?
- Custom Post Type Categories Not Maintaining URL structure any more
- Add category slug as class attribute in a link array
- Costum post type with costum (sub)taxonomy
- Category slug not showing for Custom Post Type
- Adding 2 CPT with multiple custom taxonomies to permalinks
- WordPress Custom Permalink Structure with Custom Post Type and Taxonomies
- Add taxonomy to custom post type archive
- Sorting custom post types by taxonomy (So close)
- Permalink for Custom Post Types
- WordPress pagination URL
- Different CPT permalink base on taxonomy
- Taxonomy Archive URL + Template