URL - Direct all parameters to a page

Hello
Is it possible to direct parameters to a page?

direct all non exist “directories” to single page.

For example:

posts/*
direct to
post.html

so
http://localhost:1313/posts/45345
or
http://localhost:1313/posts/3434

direct to post.html

Thank you

Tom

For a site running on Apache, see:

and not for Apache?

URL rewriting is handled by the web server, not by Hugo. You’ll need to research the appropriate method for your particular server or service. Help with URL rewriting is not within the scope of this support forum.

is there no way to configure it with Hugo?
Just point the post _Index.md

Capture455

No, there is not.

URL rewriting is handled by the web server, not by Hugo. You’ll need to research the appropriate method for your particular server or service. Help with URL rewriting is not within the scope of this support forum.

So if i have list of id’s in advance, can I write them somewhere to configure it? open folders for each id?