× Here you can get community support related to ReDJ.

rdirection in virtuemart

More
11 years 4 months ago #1310 by admin
Replied by admin on topic rdirection in virtuemart
Ok, I understand.
Probably the problem is because you have this rule:

\?option=com_virtuemart&page=shop.browse&category_id=3[0-9]

But I guess you also have this:

\?option=com_virtuemart&page=shop.browse&category_id=30[0-9]

Both matches with URLs associated to the second rule, but the first one is applied cause both match and ReDJ uses the first in ordering. You can solve adding a dollar at the end of each rule:

\?option=com_virtuemart&page=shop.browse&category_id=3[0-9]$
...
\?option=com_virtuemart&page=shop.browse&category_id=30[0-9]$

Kind regards,
Luigi

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

  • strouve181
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 4 months ago #1313 by strouve181
Replied by strouve181 on topic rdirection in virtuemart
really good, thank's for that.

Icome back with my first question,
from url : \?page=shop.product_details&flypage=vmj_naru\.tpl&product_id=
to url : http://{siteurl}/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id={preg_match 1}/product_id=([0-9]*))/{/preg_match}

there don't work the new redirection is :
www.pets-easy.com/index.php?option=com_virtuemart&view=category&virtuemart_category_id=22&error=404

and we mus have :
www.pets-easy.com/index.php?page=shop.product_details&flypage=vmj_naru\.tpl&product_id=14269

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

More
11 years 4 months ago #1315 by admin
Replied by admin on topic rdirection in virtuemart
Ok,
but the rule should redirect this:
www.pets-easy.com/chien/index.php?page=shop.product_details&flypage=vmj_naru.tpl&product_id=14269

To this:
www.pets-easy.com/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=14269

And it works, but is redirected (again) to this:
www.pets-easy.com/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=14269&lang=fr

Are you sure the destination exists?

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

  • strouve181
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 4 months ago #1316 by strouve181
Replied by strouve181 on topic rdirection in virtuemart

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

More
11 years 4 months ago #1317 by admin
Replied by admin on topic rdirection in virtuemart
OooooKeeeey,
now is clear. The rule doesn't return the product id. Looking at the rule again it seems there is a ) more then needed in the preg_match macro. Try to change:
/product_id=([0-9]*))

Into:
/product_id=([0-9]*)

Let me know,
Luigi
The following user(s) said Thank You: strouve181

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

  • strouve181
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 4 months ago #1318 by strouve181
Replied by strouve181 on topic rdirection in virtuemart
Thank you very much. all is ok now and it's really a wonderfull work. thank you again.

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

Time to create page: 0.147 seconds