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
- Custom templates based custom url structure in wordpress
- Custom Taxonomy URL are redirecting to page with the same name
- Remove url rewrites for registered taxonomies
- Add archive slug to default post post type
- Custom Post type and permalink settings
- Custom Post Type permalink shows wrong page: homepage/index.php
- Query with no terms uses index.php template instead of archive.php
- Rewrite rules for custom posts types
- Create template for taxonomy results limited by Custom Post Type
- wp_list_categories() – current-cat class also inside posts?
- Custom Post Types, URL rewrite on multiple CPTs
- Template for custom post with custom taxonomy
- How to hook custom taxonomies to custom post types and make the permalinks work?
- 404 Issue w/ Custom Post Type – using Meta for Permalink rewrite
- Get Taxonomy Term Title by it’s URL
- Taxonomy custom post type URL
- How to change custom post type permalink structure
- Custom post type url with category
- How can I use get_post_meta with add_rewrite_rule to build custom permalinks?
- Can’t get custom rewrite tag, query var, permastruct (permalink structure), and rewrite rule to work properly together
- How to have the same url structure for both a CPT and a Taxonomy?
- create a subcatagory for a custom post type and out put url as posttype/subcategory/item
- 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 taxonomy and custom post type – wrong permalinks and template
- How can I make the slug of the taxonomy also the slug of the custom post
- Can’t remove front from permalinks for custom taxonomy category page
- WordPress custom post type permalink rewrite shows page not found
- Using taxonomy term in CPT permalink – Pages 404’s
- Removing custom post type slug from URL
- How to add rewrite rule to custom post type with parent in url with cpt ui?
- Custom post type as home page with custom url
- How to rewrite url for any specific taxonomy?
- Custom post URL 404 error
- How do I change the custom taxonomy slug to be the same as the custom post type slug?
- URL rewrite add author as base
- Permalinks /country/city/cpt/postname/
- Custom Permalink to remove category word , keeping posts permalink with date?
- Seamless permalinks between Custom Taxonomy and Custom Posts
- Custom post type and custom taxonomy with the same slug using the file page taxonomy only as directory
- Custom taxonomy rewrite with query var returns %2F in URL
- WP Rewrite Rule Issue while using Custom post type & taxonomy
- Remove slug in URL custom post type
- WordPress uses url different from defined in rewrite arg of custom post type
- WordPress Doesn’t Generate Taxonomy Archive
- URL rewriting for CTP assigned entity
- How to have this permalink structure: post_type/postname/custom_inner_page
- Including taxonomy term before post type breaks top level pages
- Correct procedure for advanced permalinks
- Permalinks: custom post type -> custom taxonomy -> post
- Template for all categories of a custom post type?
- How to change permalink to include custom post type
- Custom post type, permalinks, taxonomies and blog posts
- Custom post type permalink tag 404