Redirect module in Sitecore

2019-06-25 00:11发布

I have installed Redirect module in sitecore. Inside modules I have created "Redirect Url". In Redirect Url I wrote Requested Url "http://domainname/pagename" and selected Redirect To from content. But it is not working. Can anyone tell me what is wrong I am doing?

I have created redirect pattern.

enter image description here

1条回答
来,给爷笑一个
2楼-- · 2019-06-25 00:44

It all depends on which module implementation you are using. I have heard multiple complaints on functional of original one (seems it is discontinued at all), so people are doing their own forks. The best implementation for the day is by Chris Adams and Max Slabyak, the module with sources, packages as well as good documentation is available at GitHub and it is being maintained with time.

With that Redirect Module installed, I do the following:

  1. Under /sitecore/system/Modules/Redirect Module folder in Sitecore create a new redirect pattern called Pagename Test
  2. Set requested expression to ^/pagename/?
  3. Leave response status code equal 301
  4. Set source item to the actual page item serving that redirect request
  5. Do not forget to publish redirect pattern (and module itself if not yet)

enter image description here

Then as I hit http://myhostname/pagename/ I am being redirected to desired page with 301 status code.

Hope this helps and please let us know if that worked out for you.

查看更多
登录 后发表回答