× Here you can get community support related to ReDJ.

Redirect goes to wrong page

  • nibor78
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 3 months ago #6475 by nibor78
Redirect goes to wrong page was created 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.

More
6 years 3 months ago #6482 by admin
Replied by admin on topic Redirect goes to wrong page
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
  • New Member
More
6 years 3 months ago #6491 by nibor78
Replied by nibor78 on topic Redirect goes to wrong page
Hi,

Attached a screeshhot. When publishing the first redirect, both go to the first page.
Attachments:

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

More
6 years 3 months ago - 6 years 3 months ago #6494 by admin
Replied by admin on topic Redirect goes to wrong page
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 3 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
  • New Member
More
6 years 1 month ago #6574 by nibor78
Replied by nibor78 on topic Redirect goes to wrong page
Thanks for your help!

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

More
6 years 1 month ago #6584 by admin
Replied by admin on topic Redirect goes to wrong page
U're welcome!

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

Time to create page: 0.097 seconds