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

redirect remository urls
(1 Online) (1) Ospite
  • Pagina:
  • 1

ARGOMENTO: redirect remository urls

redirect remository urls 12 Anni, 6 Mesi fa #2738

  • fermu
  • Offline
  • Fresh Boarder
  • Messaggi: 5
Hi everyone

It's me again with more questions :-P Now i'm trying to redirect this kind of urls

www.fermu.com/component/option,com_remository/Itemid,30/func,fileinfo/id,121/lang,es/

to this one kind of urls

www.fermu.com/es/descargas?func=fileinfo&id=121

I've tried with this macro but not work

From URL: ^/component/option,com_remository/


To: http://{siteurl}/{preg_match 1}/\/lang\,([^\/]+)\//i{/preg_match}/descargas?func=fileinfo&id={preg_match 1}/\/id=\/([0-9]+)\//i{/preg_match}


What am I doing wrong?

An one more question and i finish with this topic,

I need redirect from this type of urls

fermu.com/es/component/tag/mouse
fermu.com/es/component/tag/periodo

To:
fermu.com/es/component/gitags/periodo
fermu.com/es/component/gitags/mouse

So, i need to replace the word "tag" with the word "gitags. How i do it?

One more time, thank you very much and sorry for any inconvenience.
Ultima modifica: 12 Anni, 6 Mesi fa Da fermu.
L'Argomento è stato bloccato.

Re: redirect remository urls 12 Anni, 6 Mesi fa #2740

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Almost perfect,
but you use an equal (=) instead of a comma (,)

To URL: http://{siteurl}/{preg_match 1}/\/lang\,([^\/]+)\//i{/preg_match}/descargas?func=fileinfo&id={preg_match 1}/\/id,([0-9]+)\//i{/preg_match}


To replace tag:

From URL: /component/tag/
TO URL: http://{siteurl}/{preg_match 1}/\/([^\/]+)\//i{/preg_match}/component/gitags/{preg_match 1}/\/tag\/([^\/]+)/i{/preg_match}


Cheers,
Luigi
L'Argomento è stato bloccato.

Re: redirect remository urls 12 Anni, 6 Mesi fa #2743

  • fermu
  • Offline
  • Fresh Boarder
  • Messaggi: 5
admin ha scritto:
Almost perfect,
but you use an equal (=) instead of a comma (,)


can you believe that i spend more than two hours on this macro and couldn't see anything wrong?

now all works like a charm, thanks, thanks, thanks
L'Argomento è stato bloccato.

Re: redirect remository urls 12 Anni, 6 Mesi fa #2744

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Yeah,
but I have an "eagle eye"...
L'Argomento è stato bloccato.
  • Pagina:
  • 1
Moderatori: admin
Tempo generazione pagina: 0.66 secondi
Cerca con Google
News
Chi è online
 73 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.