Is this possible?
-
leetempest
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 4
-
Thank you received: 0
-
-
7 years 9 months ago #5917
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.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
7 years 9 months ago #5920
by admin
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
-
Less
More
-
Posts: 4
-
Thank you received: 0
-
-
7 years 9 months ago #5924
by leetempest
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
Please Log in or Create an account to join the conversation.
-
leetempest
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 4
-
Thank you received: 0
-
-
7 years 9 months ago #5925
by leetempest
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.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
7 years 9 months ago #5927
by admin
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