OpenCMS - 301 重定向

发布于 2024-08-13 07:21:10 字数 69 浏览 2 评论 0原文

有没有简单的方法可以在 openCMS 上配置永久重定向(301)?我想将一些旧页面网址转发到新位置。

谢谢

Is there any easy way to configure permanent redirects (301) on openCMS? I would like to forward some of my old page urls to their new location.

Thanks

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

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

发布评论

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

评论(2

执手闯天涯 2024-08-20 07:21:11

我发现 UrlRewriteFilter (http://tuckey.org/urlrewrite/) 非常好用,并且解决了我的问题!

I found UrlRewriteFilter (http://tuckey.org/urlrewrite/) to be quite nice to work with and solved my issue!

夜夜流光相皎洁 2024-08-20 07:21:11

您可以创建一个 JSP 模板,它除了发送 301 永久重定向之外什么也不做。我这样做了并且有效。

根据您的要求,您可以将新 URL 放入属性中或自动修改 JSP 模板中的旧 URL。

You can create a JSP-template which does nothing else than to send a 301 Permanent Redirect. I did that and it works.

Depending on your requirements you can put the new URL in a property or automatically modify the old URL in the JSP-template.

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