When registering the custom post types, set with_front
to false
:
register_post_type(
'my_post_type',
[
// ...etc.
'rewrite' => [
'with_front' => false,
],
]
);
The post type URL will then not include anything extra you’ve added in the Permalinks settings.