Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need help, I created a custom post type with the name “solution“, this way when I load a post and open it in the browser my link is: http://www.mywebsite.com/solution/nameofsolution

However I would like all these posts within the custom post type solution to be displayed as follows: http://www.mywebsite.com/nameofsolution

Note that I would like to remove the /solution/ part of the url!

Thanks a lot to anyone with knowledge to share.

The web server used is NGINX as a curiosity.

OBS: I used the domain http://www.mywebsite.com just to exemplify, it's not mine!

What I have tried:

I have no idea what I can do, but maybe there is a way to rewrite or manipulate it in wordpress?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900