You cannot have a rewrite slug of "https://wordpress.stackexchange.com/". Note that using a slug of '', which you will find floating around, will not work for the latest WordPress versions either. If you want a url like http://domain.com/custom-post, there are no bullet-proof solutions, but the answer to this question will give you some leads: Remove slug from custom post type post URLs
Related Posts:
- Mixing custom post type and taxonomy rewrite structures?
- Rewriting a custom-post-type permalink with taxonomy term?
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- Taxonomy, Terms, and Template Files
- How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy
- Templates for Custom Post Types and Custom Taxonomies
- How to modify URL structures in custom post types and taxonomies or terms
- Create permalink structure for one taxonomy archive per custom post type
- Custom permalinks
- Permalink rewrite with custom post type and custom taxonomy
- Custom Permalinks for Custom Post Types and Taxonomies
- Custom Post Type with Nested Taxonomy and Template Files
- Including two taxonomies in a permalink structure
- WP Rewrite Rules – Custom post type & taxonomy
- Remove base slug in CPT & CT, use CT in permalink
- How to rewrite custom post type URL for multiple depths instead of one specific depth
- Custom post type category, taxonomy and URL rewrite problem
- Permalink Structure problem with cpt and custom taxonomy
- Custom Permalink Tag breaks Pagination
- Custom Permalink for Taxonimie and Custom Post Type
- multiple url slug for single custom post type
- Custom Post Type and Custom Taxonomy Permalinks
- Permalink Structure CPT With Custom Taxonomy Fails
- Change Permalink Structure for Tag.php template
- Custom taxonomy in URL showing 404
- Adding custom post category slug in permalink causes 404 error for pages and posts
- How Can I Change the Custom Post Type Slug to the Taxonomy Slug in the URL?
- Use same slug base for Custom Post Type posts, and multiple taxonomy terms
- How to create custom url structure based on custom post type rewrite slug, taxonomy and category slug?
- Customize Custom Post Type URL
- Custom Permalinks with CPT and Hierarchical Taxonomies
- Custom Permalink Structure for Custom Post Type, Custom Taxonomy, Under a page
- 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 permalink with child taxonomy terms
- Best way to specify “article type” in URL
- Template files for Custom Post Type and Taxonomy
- Custom Post Type Advanced Slug
- WordPress custom permalink and archive link for custom post type
- Custom Permalink For Custom Post Type – Working Fine But Broken For Pagination
- Permalinks: custom post type -> custom taxonomy -> custom sub taxonomy -> post
- Pretty Permalinks with CTP and Taxonomies / Hierarchical
- Customise Permalink Structure For Custom Post Types
- Parent cpt/child custom post type URL permalink relationship
- Shouldn’t this be easy?! Custom post type/custom taxonomy permalink
- Custom Post type & Taxonomy URL structure
- Combining Multiple Taxonomies in one URL
- Why does a custom post type need the ”hierarchical’ args setting?
- Slug for custom post type archive
- Semantic URL Custom Post Type and Taxonomies permalinks
- Is slug “type” reserved and can’t be used in taxonomy rewrite?
- Permalinks when filtering multiple custom post types by single taxonomy
- custom taxonomy archive by year
- How can you handle rewrite rules for custom post types with option to filter on custom taxonomy terms?
- Custom Taxonomy URL are redirecting to page with the same name
- Query with no terms uses index.php template instead of archive.php
- Taxonomy custom post type URL
- How can achieve this permalink perfectly? domain.com/%category%/%post-name%
- custom-taxonomy/post_name instead of the default post_type/post_name
- Show custom post archive when custom post not specified
- Show custom post type relationships by taxonomy
- Custom Permalink to remove category word , keeping posts permalink with date?
- WP Rewrite Rule Issue while using Custom post type & taxonomy
- WordPress uses url different from defined in rewrite arg of custom post type
- Including taxonomy term before post type breaks top level pages
- Correct procedure for advanced permalinks
- Permalinks: custom post type -> custom taxonomy -> post
- Custom post type permalink tag 404
- How to get list of taxonomy slugs ordered parents>childs?
- Permalink misbehaving in Custom Post Types
- How to get_term_meta on single custom post?
- Add term slug in URL of custom post type details page
- Rewrite permalink for multiple post types (CPT) with taxonomy term
- Ideas on how to organize a project [closed]
- Modifying rewrite rules to use /category//
- Change permalinks for custom post type based on taxonomy term
- Safe to throw 404 error in request filter?
- 404 error rewrite permalinks
- Is there a way to use ‘publicly_queryable’ => false only on specific taxonomy term?
- How to prefix custom post type URL with custom post taxonomy term?
- Custom post type single with custom URL structure
- Pagination not working (page/2 retunring 404 page)
- How to build overlapping custom post_type and taxonomy rewrites without conflicts?
- Why did permalinks setting affect the pages?
- WordPress custom post type rewrite rule matches all pages returning 404
- Multiple archives for cpt, taxonomies, terms
- How to add base permalink to custom posts?
- taxonomy term names in custom post type permalink structure
- Change Taxonomy Permalinks
- Custom post type and custom taxonomy archive inaccessible
- How to have a dynamic slug and rendering the archive-{post_type}.php?
- Add /blog to the “post” post type url
- Rewrite Rule for custom post type link with or without taxonomy terms
- Different CPT permalink base on taxonomy
- Hide custom post type slug url from search engine [closed]
- Custom post type Premalinks main page and details page
- Is it possible for post and custom post type to share a category base slug?
- Permalinks for Custom Post Types and Taxonomies
- Rewrite taxonomy permalink appended to CPT archive url
- How to correctly edit permalink structures for both default and custom posts/taxonomies?