Home Forum
2024-11-23
Benvenuto, Ospite
Nome Utente Password: Ricordami

Redirect of a "pattern" to eliminate duplicates
(1 Online) (1) Ospite
  • Pagina:
  • 1

ARGOMENTO: Redirect of a "pattern" to eliminate duplicates

Redirect of a "pattern" to eliminate duplicates 11 Anni, 9 Mesi fa #3476

  • hor_acio
  • Offline
  • Fresh Boarder
  • Messaggi: 3
Hello...

I'm trying to 200 redirect in order to eliminate duplicates as follow:

From: ^/vehiculos/ad/jetta,505/bonito-jetta-2003,4
To: http://{siteurl}/anuncio/ad/jetta,505/bonito-jetta-2003,4

I have many diferent items with the "pattern or direction" (in green) which is actually dynamically generated- "ad/something,#/something,#"
I want to redirect that "pattern" to http://{siteurl}/anuncio/ad/something,#/something,# ...

I been trying to use {preg_match N}pattern{/preg_match} and {preg_match} without success and I am stock ...
Could someone suggest any solution?...

Thank You!...

Horacio
L'Argomento è stato bloccato.

Re: Redirect of a "pattern" to eliminate duplicates 11 Anni, 9 Mesi fa #3477

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
HI,
first let me remember that {preg_match} is an enterprise macro, so I suppose you are using this.

Another point is the URL you would like to match. Let me explain.

If you call an URL with an anchor (#) and trace the request to the server, you will see that the anchor part is not sent. This is because it is used only on the client side (browser).

So, you should consider this limit in your "From URL" rule, you will never receive an anchor (#).

Let me know if I didn't understand the question... it's more then possible

Best regards,
Luigi
L'Argomento è stato bloccato.

Re: Redirect of a "pattern" to eliminate duplicates 11 Anni, 9 Mesi fa #3478

  • hor_acio
  • Offline
  • Fresh Boarder
  • Messaggi: 3
Hello...
Yes, I am using the enterprise version.

Well I think I didn't explain myself. I meant "#" as a "number not as an "anchor". Sorry I am not good with technical language...

This way my URL pattern always is "ad/something,numericvalue1/something,numericvalue2"
that "numericvalue1" is the number of the category "id" from which the item comes from and "numericvalue2" is the id of the item... This is the SEF generated by Jooomla...

I want redirect From anything with that pattern:
"ad/something,numericvalue1/something,numericvalue2"
for example: ^/vehiculos/ad/jetta,505/bonito-jetta-2003,4

To: http://{siteurl}/anuncio/ad/something,numericvalue1/something,numericvalue2
for example: http://{siteurl}/anuncio/ad/jetta,505/bonito-jetta-2003,4

Thanks for answering Luigi!!

Kind Regards!
Horacio
L'Argomento è stato bloccato.

Re: Redirect of a "pattern" to eliminate duplicates 11 Anni, 9 Mesi fa #3479

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Hi,
it seems you want just to replace vehiculos with anuncio. If so:

From URL: ^/vehiculos/ad/
To URL: http://{siteurl}/anuncio/{pathltrim /vehiculos/}{queryfull}
Request only: true (must be checked)


If I'm wrong, pls, provide me more URL examples.

Best regards,
Luigi

P.S. Thanks for your patience ...
L'Argomento è stato bloccato.
Ringraziano per il messaggio: hor_acio

Re: Redirect of a "pattern" to eliminate duplicates 11 Anni, 9 Mesi fa #3480

  • hor_acio
  • Offline
  • Fresh Boarder
  • Messaggi: 3
Thank you!
It is actually what I needed and it works great!

Regards!
Horacio
L'Argomento è stato bloccato.

Re: Redirect of a "pattern" to eliminate duplicates 11 Anni, 9 Mesi fa #3481

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Happy to hear this.

Best regards,
Luigi
L'Argomento è stato bloccato.
  • Pagina:
  • 1
Moderatori: admin
Tempo generazione pagina: 0.64 secondi
Cerca con Google
News
Chi è online
 219 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.