Home Forum
2024-05-01
Benvenuto, Ospite
Nome Utente Password: Ricordami

problem with GET parameters
(1 Online) (1) Ospite
  • Pagina:
  • 1
  • 2

ARGOMENTO: problem with GET parameters

Re: problem with GET parameters 12 Anni, 6 Mesi fa #2676

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
You can rewrite almost everything...

But as usual I need "source and destination" examples...
L'Argomento è stato bloccato.

Re: problem with GET parameters 12 Anni, 6 Mesi fa #2677

  • kraej
  • Offline
  • Fresh Boarder
  • Messaggi: 14
almost everything ... *like

URLs are pretty much the same ...

 
FromURL /(.*)/tournaments/(.*)/(.*)
ToURL /$1/tdetails?c=$2&t=$3
 


Example:

 
FromURL /en/tournaments/spain/copa-santa
redirects to
ToURL /en/tdetails?c=spain&t=copa-santa
 
-----
 
FromURL /it/tournaments/italy/adria-football-cup
redirects to
ToURL /it/tdetails?c=italy&t=adria-football-cup
 
 


Hope you know what I mean? It's "just" one more dynamic part of the URL..

Cheers!
L'Argomento è stato bloccato.

Re: problem with GET parameters 12 Anni, 6 Mesi fa #2678

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Try this:

From URL: /[^/]+/tournaments/[^/]+/[^/]+$
To URL: http://{siteurl}/{preg_match 1}/\/([^\/]+)\/tournaments\//i{/preg_match}/tdetails?c={preg_match 1}/\/tournaments\/([^\/]+)\//i{/preg_match}&t={preg_match 2}/\/tournaments\/([^\/]+)\/([^\/]+)/i{/preg_match}


Please, be aware that this is quite complex rule and I've not tested yet, so forgive me if not works...
L'Argomento è stato bloccato.

Re: problem with GET parameters 12 Anni, 6 Mesi fa #2679

  • kraej
  • Offline
  • Fresh Boarder
  • Messaggi: 14
Luigi,you are legend!

seems to work .. i will play around a little bit ...

cheers, mate!
L'Argomento è stato bloccato.

Re: problem with GET parameters 12 Anni, 6 Mesi fa #2680

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
you are legend! ... *like
L'Argomento è stato bloccato.
  • Pagina:
  • 1
  • 2
Moderatori: admin
Tempo generazione pagina: 0.59 secondi
Cerca con Google
News
Chi è online
 68 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.