× Here you can get community support related to ReDJ.

endless string in URL after redirect

  • katrink
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 5 months ago #4479 by katrink
Replied by katrink on topic endless string in URL after redirect
Hi Luigi,

I'm feeling a little stupid, but I still can't get it to work... here's what I tried:

Rule is
from: ^/weiterleitung/(de|en)/index\.php/(de|en)/
to: {scheme}://{siteurl}/shop/{preg_match}/weiterleitung/index\.php/(en|de)/(.*)/i{/preg_match}

The pages:
from: http://shop.pallia.net/index.php/en/product/view/2/95
should be: www.pallia.net/en/shop/product/view/2/95
is: www.pallia.net/en/weiterleitung/index.php/en/product/view/2/95

from: http://shop.pallia.net/index.php/en/component/jshopping/product/view/4/81?Itemid=138
should be: www.pallia.net/en/shop/product/view/4/81?Itemid=138
is: www.pallia.net/en/weiterleitung/index.php/en/component/jshopping/product/view/4/81?Itemid=138


I'm not sure if this will need a second rule or can be rolled into one with the first (I'm happy with either way!):
from: http://shop.pallia.net/components/com_jshopping/files/img_products/full_IMG_6020.jpg
should be: http://www.pallia.net/components/com_jshopping/files/img_products/full_IMG_6020.jpg
is: http://www.pallia.net/en/weiterleitung/components/com_jshopping/files/img_products/full_IMG_6020.jpg

Thank you so much for your assistance!
All the best,
Katrin

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

More
8 years 4 months ago #4481 by admin
Replied by admin on topic endless string in URL after redirect
Hi Katrin,
for the URL:
http://www.pallia.net/en/weiterleitung/index.php/en/product/view/2/95

The rule should be:
From URL: ^/(de|en)/weiterleitung/index\.php/(de|en)/
To URL: {scheme}://{siteurl}/shop/{preg_match 2}/\/weiterleitung\/index\.php\/(en|de)\/(.*)/i{/preg_match}
Request only: true (checked)

Pay attention to quote any special char when you need as literal (like \. \/ \? and so on).

Kind regards,
Luigi
The following user(s) said Thank You: katrink

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

  • katrink
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 4 months ago #4488 by katrink
Replied by katrink on topic endless string in URL after redirect
Hi Luigi,

Thank you! This works now for the URL without the component(s)/jshopping in it. Yay!

I haven't managed to make a rule based from that, however, that will also strip the "component(s)/jshopping from the URL in the redirect.

These are the links still not redirected:
from: http://shop.pallia.net/index.php/en/component/jshopping/product/view/4/81?Itemid=138
should be: www.pallia.net/en/shop/product/view/4/81?Itemid=138
is now: http://www.pallia.net/de/shop/component/jshopping/product/view/4/81?Itemid=138

from: http://shop.pallia.net/components/com_jshopping/files/img_products/full_IMG_6020.jpg
should be: http://www.pallia.net/components/com_jshopping/files/img_products/full_IMG_6020.jpg
is now: http://www.pallia.net//de/weiterleitung/components/com_jshopping/files/img_products/full_IMG_6020.jpg

I have tried this:

from: ^/(de|en)/weiterleitung/index\.php/(de|en)/components*?/jshopping/
to: {scheme}://{siteurl}/shop/{pathfrombase}

and this:

from: ^/(de|en)/weiterleitung/components/com_jshopping/files/img_products/
to: {scheme}://{siteurl}/{pathltrim \/(de|en)\/weiterleitung}

and a few other variations, but it looks like I can't even make the first rule so it catches the old links. Can you help once more, please?

Thank you!
Katrin

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

More
8 years 4 months ago #4492 by admin
Replied by admin on topic endless string in URL after redirect

from: shop.pallia.net/index.php/en/component/jshopping/product/view/4/81?Itemid=138
should be: www.pallia.net/en/shop/product/view/4/81?Itemid=138
is now: www.pallia.net/de/shop/component/jshopping/product/view/4/81?Itemid=138

From URL: ^/index\.php/(de|en)/component/jshopping/
To URL: {scheme}://{siteurl}/shop/{preg_match 1}/\/jshopping\/(.*)/i{/preg_match}
Request only: true (checked)

Kind regards,
Luigi

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

Time to create page: 0.086 seconds