2

the 301 Redirect Module doesn't say that it supports Sitecore 9

https://marketplace.sitecore.net/Modules/3/301_Redirect_module.aspx?sc_lang=en

Has anyone tried setting it up in Sitecore 9 and were there any issues?

1

I have updated this module. You can download it from here:

https://www.dropbox.com/s/kqbkuwx07llbxsm/301%20Redirect%20Module9.0.1.zip?dl=0

Please test it very well, it was not tested too much but I had to do just one small change for upgrading from 8 to 9.

| improve this answer | |
  • Hello Vlad, I tried this module and worked perfectly fine for Sitecore 9.2. However, I am not able to get it work for regular expression. I need to redirect any request that conatains "globalnews" in the url to news page. I tried this as requested url ^mysite.local/globalnews/(.+)/$ and the source item is /sitecore/content/home – Kapil Naker Dec 30 '19 at 11:47
  • Now when i hit mysite.local/globalnews/news it throws 404 error – Kapil Naker Dec 30 '19 at 11:54
  • Hello! did you fixed that? – Phoenix_uy Apr 1 at 14:20
0

If you're matching from the start of the URL, then you'll need to include "https://". Also, your pattern as written will only match URLs ending with a trailing slash. Experiment on https://regex101.com/ with "Flavor" set to "Python".

| improve this answer | |
  • Is this answer related to using the 301 Redirect Module? – Jen Aug 7 at 7:03
  • 1
    Yes, it was in response to what Kapil had said about it not working with regular expressions. His expression was not quite right, so it may work if corrected. I'll be trying the module in Sitecore 9.3 shortly. – Havenless Aug 8 at 8:12
  • Thanks! Just got confused about your comment about setting the flavor to Python :) – Jen Aug 10 at 0:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.