Sitecore重定向不适用于“重定向模式”类型的项目

时间:2017-10-23 16:55:04

标签: redirect url-redirection http-status-code-301 http-redirect sitecore8.2

我是开发人员,致力于在www.willistowerswatson.com上创建一些重定向。我正在使用 https://marketplace.sitecore.net/Modules/3/301_Redirect_module.aspx?sc_lang=en 工具,该工具使用与sitecore中已存在的非常相似的重定向概念。我创建了 / sitecore / system / Modules / Redirect Module / Redirects / SampleRegExRedirect 项,该项使用/ sitecore / templates / Redirect Module / Redirect Pattern 模板。以下是我将其字段设置为:

请求表达式:^ https://www.willistowerswatson.com/somepath/(.+) $

响应状态代码:301永久移动

来源商品:/ sitecore / content / WTW-Home / $ 1

目标是将 https://www.willistowerswatson.com/somepath/industries 等链接重定向到有效链接 https://www.willistowerswatson.com/en/industries 。但是,它根本不起作用。当我尝试点击https://www.willistowerswatson.com/en/somepath/industrieshttps://tw-local.willistowerswatson.com/somepath/industries(没有文化代码)时,我收到了“找不到页面”。我甚至尝试将“请求的表达式”字段设置为:^ https://www.willistowerswatson.com/en/somepath/(.+) $,这也不起作用。

我做错了什么?我知道这个工具是一个sitecore功能,但使用的正则表达式应该具有相同的语法。有人可以帮忙吗?谢谢!

0 个答案:

没有答案