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

Can not find the correct rule for redirection
(1 Online) (1) Ospite
  • Pagina:
  • 1

ARGOMENTO: Can not find the correct rule for redirection

Can not find the correct rule for redirection 12 Anni, 3 Mesi fa #2972

  • Voel
  • Offline
  • Fresh Boarder
  • Messaggi: 5
Hi,

Great component indeed!

I can not figure out the correct rule for this

mydomain.com/pages/521-page.html to mydomain.com/

the number 521 could be any number between 0 and 999.

I did this:

mydomain.com/pages/[0-9]{1,3}-page.html to mydomain.com/

This is not working, what am I doing wrong?

Thank you very much,

Leo
Ultima modifica: 12 Anni, 3 Mesi fa Da Voel.
L'Argomento è stato bloccato.

Re: Can not find the correct rule for redirection 12 Anni, 3 Mesi fa #2973

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Thanks Leo,
try this:

From URL: ^/pages/[0-9]{1,3}-page\.html$
To URL: http://{siteurl}/
Request only: true


Best regards,
Luigi
L'Argomento è stato bloccato.

Re: Can not find the correct rule for redirection 12 Anni, 3 Mesi fa #2974

  • Voel
  • Offline
  • Fresh Boarder
  • Messaggi: 5
Hi Luigi,

Thank you very much, that is helping a lot.

Say, I want to redirect following url

mydomain.com/xxx/521-yyy.html to mydomain.com/

where xxx is random directory and yyy is random page.

So only redirect if there is a figure (/521- (or any other figure)) on that particular place in the url

How can I do that?

Thank you very much Luigi,
Kind regards,
Leo
Ultima modifica: 12 Anni, 3 Mesi fa Da Voel. Motivo: Made the problem more clear
L'Argomento è stato bloccato.

Re: Can not find the correct rule for redirection 12 Anni, 3 Mesi fa #2975

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Let's try to create a "perfect" regular expression...

Try this:

From URL: ^/.*/521-.*\.html$


Let me know,
Luigi
L'Argomento è stato bloccato.

Re: Can not find the correct rule for redirection 12 Anni, 3 Mesi fa #2976

  • Voel
  • Offline
  • Fresh Boarder
  • Messaggi: 5
Hi Luigi,

Thank you very much, this redirection is working like charme.

I am using now this rule ^/.*/[0-9]{1,3}-.*\.html$ and that is working fine too.

This rule is also redirecting urls like this mydomain/zzz/xxx/521-page.html and I prefer only to redirect pages mydomain/xxx/521-page.html

Should that be possible?

KInd regards,
Leo
L'Argomento è stato bloccato.

Re: Can not find the correct rule for redirection 12 Anni, 3 Mesi fa #2977

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
You are lucky...

From URL: ^/[^/]+/[0-9]{1,3}-.*\.html$
L'Argomento è stato bloccato.

Re: Can not find the correct rule for redirection 12 Anni, 3 Mesi fa #2978

  • Voel
  • Offline
  • Fresh Boarder
  • Messaggi: 5
Hi Luigi,

Thank you so much, this realy great! All is working.
I am happy!

Kind regards,
Leo
L'Argomento è stato bloccato.

Re: Can not find the correct rule for redirection 12 Anni, 3 Mesi fa #2979

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
U're welcome.
L'Argomento è stato bloccato.
  • Pagina:
  • 1
Moderatori: admin
Tempo generazione pagina: 0.81 secondi
Cerca con Google
News
Chi è online
 139 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.