This question has been asked so many times, and i have viewed every answer in this meta, and outside.
Still none are functioning in WordPress 4.9.5 (latest version).
The enhancement asked 3 years ago is still waiting: https://core.trac.wordpress.org/ticket/34136#ticket
How to remove the Custom Post Type slug name from the url, without creating issue to previous posts or pages?
I’ve tried the following solutions:
https://wordpress.stackexchange.com/a/204210 – 404 page
https://kellenmace.com/remove-custom-post-type-slug-from-permalinks/ – 404 page
http://www.codeinhouse.com/remove-slug-from-custom-post-type-in-wordpress/ – 404 page