如何使用jetty的RewriteHandler?

发布于 2025-01-05 07:22:21 字数 184 浏览 1 评论 0原文

我使用 Jetty 作为我的网络服务器,并且我想做 url 重写的事情。 你知道如何使用RewriteHandler吗?

例如: url localhost/path1/123.html 应该由 Jetty 重写为 localhost/path1:id=123

I am using Jetty as my web server, and I want to do the url rewrite stuff.
Do you know how to use RewriteHandler?

For example:
the url localhost/path1/123.html should be rewritten by Jetty to localhost/path1:id=123

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

2025-01-12 07:22:21

文档在这里 - http://wiki.eclipse.org/Jetty/Feature/Rewrite_Handler

如果您已按照文档进行操作,但没有得到您想要的结果,请提供您尝试过的操作以及获得的结果的描述。

The documentation is here - http://wiki.eclipse.org/Jetty/Feature/Rewrite_Handler

If you've followed the documentation and aren't getting the result you want, then please provide a description of what you tried, and what result you got.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文