× Here you can get community support related to ReDJ.

Is this possible?

  • leetempest
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 9 months ago #5917 by leetempest
Is this possible? was created by leetempest
Hello,
I have this redirect setup:

From URL: /bathandshower
To URL :/bath-shower

Which works fine. This is the category for a set of products. But then when I create the product redirects like so:

From URL: /bathandshower/lavender-foaming-bath-essential-oil-bubble
To URL: /cotswold-lavender/product/lavender-foaming-bath-essential-oil-bubble

And save the redirects, then when I try and visit the old /bathandshower/lavender-foaming-bath-essential-oil-bubble url it defaults tot he first redirect and displays the category page and not the new product page URL.

Is there a way to configure these redirects so the 'parent' does not over rule the second product URL?

What settings should I have on the URLS?

Thanks

Lee

Please Log in or Create an account to join the conversation.

More
7 years 9 months ago #5920 by admin
Replied by admin on topic Is this possible?
Hi Lee,
ReDJ applies the first matching rule using rule ordering. So you could put the second rule "ahead", but this can be hard to manage if you have many rules. A better way is to change the first rule so it will match only the category:
From URL: ^/bathandshower$
To URL: {scheme}://{siteurl}/bath-shower
Request only: true (checked)

This is the correct rule.

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

  • leetempest
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 9 months ago #5924 by leetempest
Replied by leetempest on topic Is this possible?
Luigi,
Thanks for the reply, I have tried your setup, but it still does not seem to want to redirect the 'child' urls and just returns the parent link.

Please check out the attached screenshot showing my setup
Attachments:

Please Log in or Create an account to join the conversation.

  • leetempest
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 9 months ago #5925 by leetempest
Replied by leetempest on topic Is this possible?
Luigi,
I think i solved it! I have removed the bathandshower from all the child From urls, and now theya re redirecting correctly.

Thanks for the help.

Lee

Please Log in or Create an account to join the conversation.

More
7 years 9 months ago #5927 by admin
Replied by admin on topic Is this possible?
Hi Lee,
from your screenshot it seems you have a problem with some rules. The To URL field must be an absolute URL (i.e. must include protocol and domain too).

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

Time to create page: 0.143 seconds