Different public directory structure and URL structure

Hello,

suppose I have a domain, example.com, and a hugo public directory structure that looks like:

public/
├── category-1/
│   ├── post-a/
│   │   └── index.html
├── category-2/
│   ├── post-b/
│   │   └── index.html
├── index.html

is it possible to configure URL structure so that post-a is at example.com/post-a/ (as opposed to example.com/category-1/post-a/) while maintaining the above directory structure? Thanks!

https://gohugo.io/content-management/urls/#permalinks

Thanks for your response Joe. It looks like these are configurations designed to create a specified structure in the public directory from the content directory. My question is how to have a URL structure that is different from the structure in the public directory

In the absence of an external URL rewrite mechanism this is not possible.

With a static site, when you ask a typically-configured server to get https://example.org/foo/bar/ it serves /foo/bar/index.html relative to the root of the published site.