× Here you can get community support related to ReDJ.

endless string in URL after redirect

  • katrink
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 2 days ago #4460 by katrink
endless string in URL after redirect was created by katrink
Hello,

I've installed the component because I have old bad links after a big restructure - but I'm getting an endless loop.

I need to redirect this pattern:

www.pallia.net/de/shopindex.php/en/product/view/2/95

to this pattern:
www.pallia.net/shop/product/view/2/95

where I keep the product etc as it was, but remove any combination of 'de' or 'en' before and after the 'shopindex.php', as well as replace the 'shopindex.php' by just 'shop'.

I've tried a few rules according to the instructions, but I'm getting this:

www.pallia.net/de/shopindex.php/en/product/view/2/shop/shop/shop/shop/shop/shop/shop/shop/shop/shop/shop/shop/shop/shop/shop/shop/shop/shop/

Any help is much appreciated - thank you!
Katrin

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

More
9 years 1 day ago #4462 by admin
Replied by admin on topic endless string in URL after redirect
Hi Katrin,
could you please post the rule you created?

Thanks,
Luigi

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

  • katrink
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 day ago #4463 by katrink
Replied by katrink on topic endless string in URL after redirect
Hi Luigi,

I tried this:

source: ^[de][en]/shopindex\.php/[de][en]
to: {scheme}://{siteurl}{pathltrim [de][en]/shopindex\.php/[de][en]}/shop/{queryfull}

Thanks,
Katrin

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

More
9 years 1 day ago #4464 by admin
Replied by admin on topic endless string in URL after redirect
Try this:
From URL: ^/(de|en)/shopindex\.php/(de|en)/
To URL: {scheme}://{siteurl}/shop/{preg_match 2}/shopindex\.php/(en|de)/(.*)/i{/preg_match}

Regards,
Luigi

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

  • katrink
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 17 hours ago #4465 by katrink
Replied by katrink on topic endless string in URL after redirect
Hi Luigi,

Thank you for your help!
I tried this, and now I get the following URL:

www.pallia.net/en/shop/{preg_match 2}/shopindex\.php/(en|de)/(.*)/i{/preg_match}

So the endless loop is gone (yay!) but it's still not working properly...

Regards,
Katrin

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

  • katrink
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 16 hours ago #4466 by katrink
Replied by katrink on topic endless string in URL after redirect
I just found that when I click the bad link, I get the endless string first (shopshopshop) and the warning that there is an endless redirection loop. When I then click on "try again", I get the URL with the {preg_match 2}/shopindex\.php/(en|de)/(.*)/i{/preg_match} part.

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

Time to create page: 0.173 seconds