Home Forum
2017-11-25
Menu principale
Prodotti
Giochi a premi
Accedi ai servizi
Newsletter
Ricezione
Benvenuto, Ospite
Nome Utente Password: Ricordami

Remove query with 200 redirect?
(1 Online) (1) Ospite
  • Pagina:
  • 1

ARGOMENTO: Remove query with 200 redirect?

Remove query with 200 redirect? 6 Anni, 3 Mesi fa #2455

  • apercey
  • Offline
  • Fresh Boarder
  • Messaggi: 4
Hi,

Can can ReDJ item, configured as a 200 redirect, remove a query string from a URL while still loading the correct page contents (as designated by the query string)?

For example, I wish to do the following:

From URL: mysite.com/nice-SEF-URL?query-string
To URL: mysite.com/nice-SEF-URL

Your documentation regarding 200 redirects seems to imply that this can be done and that Joomla will still see the query string and load the correct page configuration.

I'm using the following exact item values:

From URL: /dance-professionals-and-businesses\?
To URL: http://{siteurl}{path}

If I configure the item as a 301 redirect, it correctly removes the query string, but the page does not load properly (of course). But if I configure the item as a 200 redirect, then the query string still appears in the URL *and* the page does not load properly!

The System - ReDJ plugin is ordered first among my system plugins. I don't have JoomFish (I mention that only because I've seen it mentioned in related forum posts). Setting "Use early redirect" to Yes didn't seem to make any difference.

I appreciate any help you can offer!

Andrew

Re: Remove query with 200 redirect? 6 Anni, 3 Mesi fa #2476

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Yes,
it should be possible with internal redirect (only for Enterprise version), but you can test it even with 301 and your item is wrong. Try this:

From URL: ^/nice-SEF-URL$
To URL: http://{siteurl}/nice-SEF-URL?param1=value1&param2=value2


Note that to avoid loops I've added the dollar at the end (as explained in the tutorial)...

Let me know,
Luigi
  • Pagina:
  • 1
Moderatori: admin
Tempo generazione pagina: 1.58 secondi
News
Cerca con Google
Chi è online
 121 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.