Redirect goes to wrong page
-
nibor78
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
6 years 10 months ago #6475
by nibor78
Hi,
I try to redirect some pages, eg ending at /hg1802 and /hg18027.
They both go to the first page. How can I solve this?
Thanks in advance.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
6 years 10 months ago #6482
by admin
Hi,
can you post here the rule you are using to redirect?
Please Log in or Create an account to join the conversation.
-
nibor78
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
6 years 10 months ago #6491
by nibor78
Hi,
Attached a screeshhot. When publishing the first redirect, both go to the first page.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
6 years 10 months ago - 6 years 10 months ago #6494
by admin
Ok,
I think I got it even if the screenshot is not so clear. Rules can match a partial URL, and if you have many matching URLs, only the first one is applied using the "ordering" for sorting rules.
So to avoid playing with ordering it is a good practice to write rules that match ONLY the real URLs you want to match. In your case it's easy. Just add a dollar sign ($) at the end of both rules.
The rule is a regular expression and the dollar means "ends with", so each rule will not mess with the other one.
Kind regards,
Luigi
Last edit: 6 years 10 months ago by admin.
The following user(s) said Thank You: nibor78
Please Log in or Create an account to join the conversation.
-
nibor78
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
Time to create page: 0.134 seconds