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
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Remove slug in taxonomy url
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- How can I rewrite URLs to pass taxonomy and post type values to the query?
- Get page by template?
- Adding meta values to permalink
- WordPress custom taxonomy URL rewrite on spelling errors
- Custom Posttype Inheritance (and url structure)
- Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error
- Rewrite permalinks for custom posttype and custom taxonomy
- How to check if last uri segment is a custom post type or taxonomy term?
- Custom taxonomy & post slug permalink
- Many to Many Taxonomies or rewrite rules?
- how to use two permalinks for one custom post type
- Custom Taxonomy List links being re-written
- Custom Post Types, Custom Taxonomies and Permalinks ?
- Bulk 301 redirect for custom post type
- Trying to manage templates on a blog with lots of custom taxonomies
- What is better: Custom Fields vs Custom Taxonomies with Terms for perfomance, scalability and better user experience
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- removing custom tax & CPT slug, adding taxonomy term in front of custom type
- Custom post type and taxonomy permalinks – Structure
- remove permalink “front part” for custom post type
- Making a custom help center page
- Add archive slug to default post post type
- Custom Post type and permalink settings
- Can’t get custom rewrite tag, query var, permastruct (permalink structure), and rewrite rule to work properly together
- 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
- Removing custom post type slug from URL
- Custom post type, permalinks, taxonomies and blog posts
- Taxonomy in URL
- Archive for a Taxonomy of a Custom Post type
- Main query not querying any posts in custom taxonomy template
- Which file/template is in charge of taxonomies for custom post types?
- Set parent for custom post type archive rewrite url
- How to get all posts related to particular category name on button click?
- Urls in Custom Post Type work for Terms but not for its Taxonomies
- custom post archive URL is wrong
- Redirect Custom Post Type from Child Taxonomies
- How to change URL structure for custom post type in wordpress? Custom taxonomy + custom Post name [duplicate]
- Remove CPT Slug with 2 taxonomies and 1 post meta
- Custom taxonomy with custom post type template not showing
- How should i name the .php file to show custom posts under a taxonomy’s term?
- template structure for CPT not clear
- Custom Post type and Taxonomy in post URL error
- redirect old post type url to new structure url
- How to retrieve the permalink for a specific (custom) term?
- Listing all custom post types using a specific term on the said term’s template page, in groups
- How can you preserve URLs when moving posts to a custom post type?
- Custom Post Type Base URL
- Only One Post of Custom Post Type Appearing on Template Page
- 404 Error On Custom Taxonomy Pages 2, 3, etc
- Rewrite Rule for custom post type link with or without taxonomy terms
- Custom post type Premalinks main page and details page
- Permalinks for Custom Post Types and Taxonomies