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

Redirect with anchor in from url
(1 Online) (1) Ospite
  • Pagina:
  • 1

ARGOMENTO: Redirect with anchor in from url

Redirect with anchor in from url 12 Anni, 6 Mesi fa #2711

  • Marchert
  • Offline
  • Fresh Boarder
  • Messaggi: 2
Hello,

sorry, I'm not familar with regular expressions and need help.

I'm trying to redirect an url with an anchor:

Base: www.marchert.de/

From: software#en
To: www.outlook-stuff.com/lang-de/download/32-formatnumbers.html

If you click e. g. on www.marchert.de/redirect.php?location=software#en (this is a complete link existing on the web) the browser goes to www.outlook-stuff.com/#en.

Peter
L'Argomento è stato bloccato.

Re: Redirect with anchor in from url 12 Anni, 6 Mesi fa #2712

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Hi Peter,
a note about the anchor part. When I write this in the web browser:

www.marchert.de/redirect.php?location=software#en

The browser makes this request:

www.marchert.de/redirect.php?location=software

This is because the anchor part is something related to the browser, not to server. So the server can tell to your browser "jump to #en", but the browser don't need to tell this info to the server.

The response to this call is a 301 redirect:

www.outlook-stuff.com/lang-de/produkte.html

This could include the anchor, but it doesn't. But the browser preserve the anchor part from the first call.

So, I suppose you need to create a redirect that include the anchor part (correct me if I'm wrong).

In the base site (www.marchert.de) create an item as follow:

From URL: ^/software$
To URL: http://www.outlook-stuff.com/lang-de/download/32-formatnumbers.html


This should work. Let me know.

Best regards,
Luigi
L'Argomento è stato bloccato.

Re: Redirect with anchor in from url 12 Anni, 5 Mesi fa #2763

  • Marchert
  • Offline
  • Fresh Boarder
  • Messaggi: 2
admin ha scritto:
Let me know.

Sorry, but I wanted long time ago to reply but I still have no time for testing.
L'Argomento è stato bloccato.

Re: Redirect with anchor in from url 12 Anni, 5 Mesi fa #2764

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
No problem.
L'Argomento è stato bloccato.
  • Pagina:
  • 1
Moderatori: admin
Tempo generazione pagina: 0.47 secondi
Cerca con Google
News
Chi è online
 114 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.