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

Redirect looping and dont redirect
(1 Online) (1) Ospite
  • Pagina:
  • 1

ARGOMENTO: Redirect looping and dont redirect

Redirect looping and dont redirect 14 Anni, 2 Mesi fa #1060

  • rmh
  • Offline
  • Fresh Boarder
  • Messaggi: 5
I have made i few item redirects, but only 1 of the works (folie.html) nr 1. The others do a loop. When you will enter the ex /stilladsbanner.html it is just trying to load the page and nothing happens.
But i can see on the hits that it is looping and counting hits.

The redirects are made simular way so dont understand why the first works. Le immagini di questo Forum sono invisibili ai visitatori. Prego accedi o registrati per visualizzarli.
Allegati:
  • Allegato Le immagini di questo Forum sono invisibili ai visitatori. Prego accedi o registrati per visualizzarli.
Ultima modifica: 14 Anni, 1 Mese fa Da rmh.
L'Argomento è stato bloccato.

Re:Redirect looping and dont redirect 14 Anni, 2 Mesi fa #1062

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Hi,
the image is not so clear, but I guess the loop is due the destination URL matches the source URL. In your case this is because you want to drop part of path.

To avoid this, just use "regexp" features like ^ (means "start with") and $ (means "end with").

Just an example. Suppose you want to redirect www.domain.com/page.html to the real full path www.domain.com/folder/page.html. In this case, you can configure item as follow:

FromURL: ^/page.html
ToURL: http://{siteurl}/folder/page.html


In this case the destination REQUEST_URI (used by ReDJ) will be "/folder/page.html", and this doesn't match anymore with "^/page.html" because don't start with "/page.html" (there's the "/folder" part).

I hope I was clear.

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

Re:Redirect looping and dont redirect 14 Anni, 2 Mesi fa #1063

  • rmh
  • Offline
  • Fresh Boarder
  • Messaggi: 5
Dean on That works..

I have another that just makes a 404.
from: ^/onlinebutik.html?page=shop.browse&category_id=43$
to: www.tekstlogo.dk/online-butik.html


Is there a way to be in errors and copy info on a error to a redirect item?
Like in sh404sef, you can click the error and it will create a new redict item.
L'Argomento è stato bloccato.

Re:Redirect looping and dont redirect 14 Anni, 2 Mesi fa #1064

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Remember to escape the question mark and use macro on destination:

from: ^/onlinebutik.html\?page=shop.browse&category_id=43$
to: http://{siteurl}/online-butik.html


These kind of "facilities" (e.g. a wizard for assisted creation) are planned. But are "enhancements", so have lowest priority compared to ing features (like alias with internal redirect).

L.
Ultima modifica: 14 Anni, 2 Mesi fa Da admin.
L'Argomento è stato bloccato.

Re:Redirect looping and dont redirect 14 Anni, 2 Mesi fa #1065

  • rmh
  • Offline
  • Fresh Boarder
  • Messaggi: 5
Thank you

Thanks for at great component.

When there are no "Last Referer" does that mean that it is a bot crawling the site?
There many specific errors that i am almost surden of not being persons.
L'Argomento è stato bloccato.

Re:Redirect looping and dont redirect 14 Anni, 2 Mesi fa #1066

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Happy to hear you like ReDJ.

Referer is just the URL you are coming from. If you type directly site URL in your browser, for example, referer is not set.

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