Home Forum
2024-03-28
Benvenuto, Ospite
Nome Utente Password: Ricordami

Redirect problem to Virtuemart - Losing strings
(1 Online) (1) Ospite
  • Pagina:
  • 1

ARGOMENTO: Redirect problem to Virtuemart - Losing strings

Redirect problem to Virtuemart - Losing strings 13 Anni, 9 Mesi fa #1231

  • rob
  • Offline
  • Fresh Boarder
  • Messaggi: 3
Hi!

First off, Great component!

I have a problem with redirecting pages to Virtuemart. Standard Articles work as a charm but when I try to redirect to a product on virtuemart, the strings gets removed and you only come to the virtuemart startpage.

An exemple:

From: /Prod/product.cfm\?id=123

To: http://{siteurl}/index.php?option=com_virtuemart&page=shop.product_details&flypage=flypage.tpl&category_id=8&product_id=125&Itemid=53&lang=en


Result (Redirecting to):

www.xxxxx.com/index.php?option=com_virtuemart&Itemid=53


So, everything except option and Itemid get stripped... Please help
L'Argomento è stato bloccato.

Re:Redirect problem to Virtuemart - Losing strings 13 Anni, 9 Mesi fa #1233

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Hi and thanks.
This issue is very (very) strange, because ReDJ plugin set the destination where redirect as configured, but is the client that receive this and does the redirect.

So, I'd like to test this redirection. If possible, send me your site address at info(at)sistemistica.it. If you can, send me a dump of ReDJ table, and a screenshot of plugin settings.

Regards,
Luigi
L'Argomento è stato bloccato.

Re:Redirect problem to Virtuemart - Losing strings 13 Anni, 9 Mesi fa #1234

  • rob
  • Offline
  • Fresh Boarder
  • Messaggi: 3
Wow, thanks for quick response!

I have sent you a mail with the details you requested Luigi.

BR

Rob
L'Argomento è stato bloccato.

Re:Redirect problem to Virtuemart - Losing strings 13 Anni, 9 Mesi fa #1235

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Ok Rob,
I got it. Now I try to explain. You have these items:

(5, '/bprod/prod.cfm', 'http://{siteurl}/index.php?option=com_virtuemart&Itemid=53', 8, 5, 1, 0, '0000-00-00 00:00:00'),
...
(8, '/bprod/prod.cfm\\?prodid=1460', 'http://{siteurl}/index.php?page=shop.product_details&flypage=flypage.tpl&product_id=39&category_id=23&option=com_virtuemart&Itemid=53&lang=en', 0, 8, 1, 0, '0000-00-00 00:00:00'),
(9, '/bprod/prod.cfm\\?prodid=8910', 'http://{siteurl}/index.php?option=com_virtuemart&page=shop.product_details&flypage=flypage.tpl&category_id=25&product_id=119&Itemid=53&lang=en', 0, 9, 1, 0, '0000-00-00 00:00:00'),
...


So, ReDJ compare the current URL with matching items using regexp. If more that one matches, only the first one found is used (i.e. the lowest ID). In your case, for any URL like this:

www.yoursite.com/bprod/prod.cfm?prodid=8910


The first one that match is the item with ID=5, that redirect to:

http://{siteurl}/index.php?option=com_virtuemart&Itemid=53


One "poor" solution to the problem is to move this item as the last one, but a more elegant solution is to use power of "regular expressions"...

I mean, modify the "From URL" for item 5 as follow:

From URL: ^/bprod/prod.cfm$


It this case ONLY the URL www.yoursite.com/bprod/prod.cfm matches. The caret (^) means "start with", and the dollar ($) means "end with".

More info here:

dev.mysql.com/doc/refman/5.1/en/regexp.html

Let me know if there are still problems.

Regards,
Luigi
Ultima modifica: 12 Anni, 3 Mesi fa Da admin.
L'Argomento è stato bloccato.

Re:Redirect problem to Virtuemart - Losing strings 13 Anni, 9 Mesi fa #1236

  • rob
  • Offline
  • Fresh Boarder
  • Messaggi: 3
Works like a charm!

Thanks a lot Luigi!!

Solid support
L'Argomento è stato bloccato.
  • Pagina:
  • 1
Moderatori: admin
Tempo generazione pagina: 0.72 secondi
Cerca con Google
News
Chi è online
 76 visitatori online
Sponsor

slotmachineaamsonline.com è una guida alle migliori slot machine online legali in Italia. Sul sito trovi un elenco sempre aggiornato dei casino online con Slot machine e bonus slot, le ultime novità dal mondo delle slot online e le migliori strategie per vincere. Inoltre, è disponibile una sezione dedicata alle slot machine da BAR che finalmente sono disponibili nella versione online.