The pseudo static function of caddy 2 can be realized through the "handle" and "rewrite" instructions in the caddyfile configuration file.The specific methods and rules need to be adjusted and configured according to your specific needs and website structure.It is recommended to refer to the official Caddy documentation or related topics in the Caddy community forum for the latest configuration guidelines and best practices.