The answer to your question is dependent upon your hosting environment (IIS, nginx, Apache, etc.). In a nutshell, you are looking to perform a redirect while preserving the original query. Consider https://serverfault.com/a/548595 for an example of one such redirect being performed within nginx.
Related Posts:
- How to Add a Sub Menu Page to a Custom Post Type?
- How to give position to Submenu under custom post type
- Add Settings to Custom Post Type
- Insert & order custom post types in/as submenu
- How to add a custom taxonomy to show up in a custom post type menu?
- Show category and tag link as a submenu under custom post type submenu
- Create an administation subpage containing posts in a certain category
- Custom post type submenu sorted by specific meta_key & meta_value
- Delete all posts of a custom post type—efficiently
- Create category only for custom post type
- Reducing the use of global $post
- Custom Post Types not showing on Custom Taxonomy archive page
- custom post type or taxonomy
- Search everything (posts, pages, tags, cpt, meta)
- Admin to user notices – best practices?
- Reslug a Custom Post Type
- Removing CPT slug from URL results in 404 error for archive page
- Internationalize / translate custom post types & taxonomies
- Anyway to assign custom post types to a specific category?
- front end radio custom taxonomy with custom post type
- Search Post Title Only [duplicate]
- Custom post type’s slug gets wrong when adding a custom meta box
- Can’t sort order of wp_query with 2 meta keys
- How to get source of custom meta image?
- Custom Post Type archive giving 404
- Get count of custom post type created by current user
- Query Custom Post by Category
- Role Capabilities: Add New Ones?
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- How can I show recent posts from same taxonomy as the post currently being viewed?
- How could I create a ‘private comments’ section on a custom post type?
- Custom post type capabilities require “create_posts” to access the edit posts list page
- Custom post type archive not regarding ‘posts_per_page’ => -1
- If post_type is This or This
- Group custom posts by custom taxonomy names
- Using GraphQL Plugin with Pods Framework
- How to query custom post types posts filtered by multiple custom taxonomies through a form selection
- How i can add ‘N’ page of ‘N’ pages under posts loop?
- Custom Post Type with Templates using Meta Boxes?
- Copy post from category to custum post type
- Using default WP menu functionality to link to custom post-type listing?
- Custom post type not showing in search result
- Listing posts under primary and secondary taxonomies
- Custom post type, organized by categories
- Removing Custom Permalink Structure for Custom Post Type
- Getting thumbnails of a custom posts featured images in a page-templates metabox
- can these 3 queries be re-written as 1 query?
- cannot override post_types in WP_Query()
- Wrapping x posts in html without leaving empty html
- How to customize work area / admin area in a custom post type without plugins?
- Make homepage the newest post of a custom post type
- Add “Select All” to custom taxonomy
- Post loop count is not in order
- Insert Custom Post Types
- How to inherit field value from parent post into in child / sub post
- how to show records that don’t have custom meta value
- Want a custom query with just one category but from all custom post types
- Only show columns in custom post type?
- Filter content in shortcode
- How to constrain the results to a specific post_type on tag archive page?
- Custom Post Type – Portfolio no longer works
- Having Issue on Getting Metabox Checkbox Value
- add_action ‘init’ from inside a class for custom post types
- Convert Custom Taxonomy Posts to Normal Posts
- Custom menu breaks down
- Pagination for custom post type giving 404 error (but only for news page)
- How to set post date in post_type so that it’s same as latest post in category
- Add two custom product type
- Adding a Custom Post Type
- Urgent – WordPress keeps creating posts
- WordPress shortcode to pull product post data
- ACF field check value of field on all other articles
- Do not load the categories in Category.php
- Add %post_id% to slug of custom post type and prevent the “unique slug” thing that WP does?
- “A post type mismatch has been detected” Error when updating custom post
- Custom Post didn’t display on tags page
- Not able to get all the actions (View, Edit, Quick Edit, Trash), and not able to delete post in custom post type
- How do I resolve obtaining the dashboard features created with CPT UI in localhost onto my live site?
- Automatically assign posts with custom field to taxonomy term
- Displaying the Taxonomy and a Queried Term on a taxonomy.php page?
- Change Background Color For CPT Template
- How can I make my CPT read from page-*post-type*.php?
- Custom post type not being pulled in widget
- Custom post type updated to support comments, yet comments don’t appear
- Both parent and child articles in archive page
- Shortcodes in custom post fields without the_content()
- Custom post type navigation on static page
- Add multiple custom meta boxes to different custom post types
- how to load custom single.php?
- How to show a custom taxonomy using a custom template
- Custom post types & Thumbnails
- I want to split this into two functions
- Repeatable Custom Field for Media Upload
- Register a title automatically with a relationship field
- Change position of Post Formats box?
- How to store datetime from custom meta box so that it can be sorted by
- Add HTML before a specific div?
- Woocommerce product page is not showing custom css [closed]
- Front end post or photo or both
- Custom slugs with dates & IDs on Custom Post Type