URL endpoint with HTML

I’m using WordPress endpoints to render another template on a post page. How can I add .html to the end of the URL that using the endpoint?

Example:

Normal URL: example.com/angry-birds

Normal URL with endpoint: example.com/angry-birds/play

Here are the results I’m trying to achieve:

example.com/angry-birds.html and example.com/angry-birds/play.html

0

Leave a Comment