× Here you can get community support related to ReDJ.

rdirection in virtuemart

  • strouve181
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 9 months ago #1292 by strouve181
rdirection in virtuemart was created by strouve181
Hello,
i try to use your component, but i'm so bad.
i have an old website in joomla 1.5 and a new one in 2.5. and i want to redirect my all 42000 virtuemart product.
the old url is :
www.pets-easy.com/chien/index.php?page=shop.product_details&flypage=vmj_naru.tpl&product_id=14269
and my new one is :
www.pets-easy.com/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=14269

the virtuemart product id is the always the same.

how can i create a code for that without cretae 42 000 url redirection?

thank's a lot.

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

More
10 years 9 months ago #1293 by admin
Replied by admin on topic rdirection in virtuemart
Hi,
you can build a single rule to redirect all pages. But I have a question before. If I call the new URL it seems to point to a category and not to an item. Can you send me two or three working couples? Then I can help you to build the rule...

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

  • strouve181
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 9 months ago #1294 by strouve181
Replied by strouve181 on topic rdirection in virtuemart
Yes, i understand, it's because actualy the new web site is not availed. you can not test on the actualy website. the new one is on my own server. i wait fo publish it to have the complete solution for work fine.

I have the redirection for only the product, for my category, the new web site use cherry picker module filter on customfield and there are not the same category. so i think to use all old url category to the main page of virtuemart. i hope is good for google index.

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

More
10 years 9 months ago #1297 by admin
Replied by admin on topic rdirection in virtuemart
I understand...

Try this:
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}

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

  • strouve181
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 9 months ago #1302 by strouve181
Replied by strouve181 on topic rdirection in virtuemart
Thank's for that,
but when i test it on my server, the url is rewrite at :
www.pets-easy.com/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id={preg_match%201}/product_id=%28[0-9]*%29%29/{/preg_match}

the id not change and replace by {preg_match%201}/product_id=%28[0-9]*%29%29/{/preg_match}

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

More
10 years 9 months ago #1303 by admin
Replied by admin on topic rdirection in virtuemart
Are you using the Community version? The preg_match macro is only available for Enterprise. If you are using the Community I have to find another way to extract the numeric part from the source URL...

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

Time to create page: 0.113 seconds