× Here you can get community support related to ReDJ.

How to give the same Redirect URL to many 404

  • dviolante
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 4 months ago #4496 by dviolante
Replied by dviolante on topic How to give the same Redirect URL to many 404
Hello, i did that yesterday before writting you and that didnt work.
Removing the last / from the rule Im getting this error

The page isn't redirecting properly

Im attaching some screenshots.
I hope you can help me with this.

Thanks
Attachments:

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

More
8 years 4 months ago - 8 years 4 months ago #4497 by admin
The problem is the pattern /lomo-de-cerdo-glaseado is present in the target URL and this causes a loop. To avoid this replace the final slash with a dot (means any char), so the target will not match anymore.
Last edit: 8 years 4 months ago by admin.

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

  • dviolante
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 4 months ago #4498 by dviolante
Replied by dviolante on topic How to give the same Redirect URL to many 404
Thanks for your response.
Adding the dot at the and of the URL works fine! This is great! Thanks!

This works fine with any url that contains anything else before /lomo-de-cerdo-glaseado, but now im facing that if the url doesnt have anything before glaseado the rule is not applied.

For example:
Using the dot in the rule the redirect works fine
www.cocinaconalegria.com.mx/leguminosas/item/lomo-de-cerdo-glaseado?category_id=23

But in this kind of url it is not (nothing before glaseado)
www.cocinaconalegria.com/navidad/item/lomo-de-cerdo-glaseado
cocinaconalegria.com/navidad/item/lomo-de-cerdo-glaseado

Any ideas? Maybe creating a new rule? But how?
Lets remember that using / / at the end dont work.

Thanks!!!!!!

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

More
8 years 4 months ago - 8 years 4 months ago #4500 by admin
Add a question mark after the dot, and the dot (any char) becomes optional :)
Last edit: 8 years 4 months ago by admin.

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

  • dviolante
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 4 months ago #4502 by dviolante
Replied by dviolante on topic How to give the same Redirect URL to many 404
Hello, i have added the ? question mark after the . dot, like this

/lomo-de-cerdo-glaseado.?

and im getting again the The page isn't redirecting properly error.

Any ideas?
Thanks

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

More
8 years 4 months ago #4506 by admin
No,
it should work, so probably I misunderstood the original request following the thread.

Could you please, tell me again which is the current rule and the URL it is not working for?

Thanks

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

Time to create page: 0.091 seconds