Home Forum
2012-02-07
Menu principale
Prodotti
Giochi a premi
Accedi ai servizi
Newsletter
Ricezione
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 1 Anno, 11 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: 1 Anno, 9 Mesi fa Da rmh.

Re:Redirect looping and dont redirect 1 Anno, 11 Mesi fa #1062

  • admin
  • Offline
  • Administrator
  • Messaggi: 1326
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

Re:Redirect looping and dont redirect 1 Anno, 11 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.

Re:Redirect looping and dont redirect 1 Anno, 11 Mesi fa #1064

  • admin
  • Offline
  • Administrator
  • Messaggi: 1326
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: 1 Anno, 11 Mesi fa Da admin.

Re:Redirect looping and dont redirect 1 Anno, 11 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.

Re:Redirect looping and dont redirect 1 Anno, 11 Mesi fa #1066

  • admin
  • Offline
  • Administrator
  • Messaggi: 1326
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
  • Pagina:
  • 1
Moderatori: admin
Tempo generazione pagina: 0.67 secondi
News
Cerca con Google
Chi è online
 62 visitatori e 1 utente online
Pubblicità