/p/{id} if(404) -> redirect /p?id={id}

Hello All,

like uri → /p/{id} if(404) → rewrite /p?id={id}

How to configure rewrite

Howdy @HUD_READ, welcome to the Caddy community. I imagine you’re looking for the try_files directive:

If you need any more information, I’ll have to ask you to fill out a Help topic template so we can give you better assistance.

1 Like