thecadams / 301RedirectModule

An improved version of the Sitecore 301 redirect module by Chris Castle, available at http://trac.sitecore.net/301RedirectModule
MIT License
30 stars 67 forks source link

version 1.9 doesn't work with sitecore 10 #64

Open Ashahi01 opened 3 years ago

Ashahi01 commented 3 years ago

Upgraded package version 1.9 doesn't work with sitecore 10. Created a requested url for redirecting but it doesn't work Any help would be appreciated.

KrisBethea commented 3 years ago

Upgraded package version 1.9 doesn't work with sitecore 10. Created a requested url for redirecting but it doesn't work Any help would be appreciated.

At this point, I presume there will be no update for Sitecore 10? @Ashahi01 did you figure it out or switch to a new redirect module?

edit: n/m I found it.

Soulfulate commented 3 years ago

Hi

I have installed the Upgraded package version 1.9 on Sitecore 10.0.1 and still doesn't work. Have you managed to get it to work? If so, on which Sitecore version are you?

KrisBethea commented 3 years ago

I'm working on 10.1.1 but I've put off doing the redirects until after I get Glass Mapper, WeBlog, and the dynamic placeholders updated. I was hoping by then that there would be some work done on the 301RedirectModule to ease the upgrade.

I'll update here when (if??? LOL) I get it working.

Ashahi01 commented 3 years ago

Hi

I have installed the Upgraded package version 1.9 on Sitecore 10.0.1 and still doesn't work. Have you managed to get it to work? If so, on which Sitecore version are you? @Soulfulate I installed sitecore 10.0.1 and I could make it work. there is an issue with the initial package that redirection doesn't work for the page that exist. I had to make small change in there file and it worked.

KrisBethea commented 3 years ago

Oh COOL!! Good to know, thanks @Ashahi01

Ashahi01 commented 3 years ago

Oh COOL!! Good to know, thanks @Ashahi01

@KrisBethea Let me know if you need those fix, I can share that.

Soulfulate commented 3 years ago

@Ashahi01 that's wonderful. could you share exactly how you got it work? i am desperately needing a solution (my life depends on it LOL).

Ashahi01 commented 3 years ago

@Soulfulate Go to this file SharedSource.RedirectModule.config it would be placed inside Include/SharedSource/ folder. Go to the line below <processor type="SharedSource.RedirectModule.Processors.RedirectProcessor,SharedSource.RedirectModule" patch:after="processor[@type='Sitecore.Pipelines.HttpRequest.ItemResolver, Sitecore.Kernel']"/> In this line, replace patch:after with patch:before And that's it 301 redirect module would work for existing pages as well.

Soulfulate commented 3 years ago

@Ashahi01 i have made the changes like you've said and i'm still not able to get the module to work (see image below) image

here's what i did:

  1. installed v1.9 Package of the module
  2. copied the contents of /App_Config/ and /bin to the respective App_Config and /bin in my wwwroot website both on the CM and CD roles
  3. created a Redirect URL rule under the content tree (/sitecore/system/Modules/Redirect Module/Redirects/Test3)
  4. then published this rule out to the web db (published the templates and all the subitems before and also checked after publishing that the rule is on the web db by using DB Browser)

still no joy after all that :(

Ashahi01 commented 3 years ago

@Soulfulate You will have to install the package instead of manually copying the files to respective folders.

Soulfulate commented 3 years ago

@Ashahi01 i installed it. v1.9

Ashahi01 commented 3 years ago

Please check your Requested Url and redirect to item field has correct format image

Attached the format that I have used

Soulfulate commented 3 years ago

@Ashahi01 here's a snippet of my rule image

Ashahi01 commented 3 years ago

Rule looks correct.

ganeshvidhate commented 2 years ago

Hi @Soulfulate @Ashahi01

My Project recently we started migrating from 8.1 to 10, but page redirects are not working. I am looking for v1.9 package on this link http://trac.sitecore.net/301RedirectModule. but page is not loading, Could you please provide me that zip package and a way to install it Sitecore 10.

would really appreciate your help

kartyek commented 1 year ago

Hi @ganeshvidhate @Soulfulate @Ashahi01 @KrisBethea , We have currently migrated to SC 10.2 instance where the Redirects are not working. Could any one of you please help me to resolve this?

ganeshvidhate commented 1 year ago

On Sat, Aug 26, 2023 at 12:06 AM kartyek @.***> wrote:

Hi @ganeshvidhate https://github.com/ganeshvidhate @Soulfulate https://github.com/Soulfulate @Ashahi01 https://github.com/Ashahi01 @KrisBethea https://github.com/KrisBethea , We have currently migrated to SC 10.2 instance where the Redirects are not working. Could any one of you please help me to resolve this?

— Reply to this email directly, view it on GitHub https://github.com/thecadams/301RedirectModule/issues/64#issuecomment-1693779729, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKQWKFNX4NATMEWILVQN3VLXXDWB3ANCNFSM4XAL7XIA . You are receiving this because you were mentioned.Message ID: @.***>

Hi Kartyek,

After taking this module, u need to write ur own custom rules in redirectProcessor file. Base on the page request.

We did the same.

Thanks