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

Rename catalog items
(1 Online) (1) Ospite
  • Pagina:
  • 1

ARGOMENTO: Rename catalog items

Rename catalog items 6 Anni, 4 Mesi fa #2369

  • vilena
  • Offline
  • Fresh Boarder
  • Messaggi: 7
Hello,

I have a catalog. It is possible to redirect:

From: www.site.com/catalog/category1/category2/item1

To: www.site.com/item1

Thanks!

Re: Rename catalog items 6 Anni, 4 Mesi fa #2371

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Create an item as follow:

From: /catalog/category1/category2/item1
To: http://{siteurl}/item1


If what you really wnat is that users call the short url (www.site.com/item1), and they get the content of the long one (www.site.com/catalog/category1/category2/item1), the item must work opposite:


From: ^/item1$
To: http://{siteurl}/catalog/category1/category2/item1


In this case use the initial caret (^) to avoid redirection loops.

Luigi
Ultima modifica: 5 Anni, 11 Mesi fa Da admin.

Re: Rename catalog items 6 Anni, 4 Mesi fa #2373

  • vilena
  • Offline
  • Fresh Boarder
  • Messaggi: 7
admin ha scritto:
Create an item as follow:

From: /catalog/category1/category2/item1
To: http://{siteurl}/item1




Does not work. Appear 404 page. May be that is becouse catalog component make its own path.
I want instead of long path to have short links. (It is for SEO). What i must do: write a rule in ReDJ or modify catalog component?

Re: Rename catalog items 6 Anni, 4 Mesi fa #2374

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
So I supposed right, you should use the second one:

From: ^/item1$
To: http://{siteurl}/catalog/category1/category2/item1


Consider that /item1 doesn't exist and here ReDJ redirect to existing URL. But if you get an error 404 from Apache, it means that Apache manages your request, so Joomla (and ReDJ) can't do nothing.

If you need to manage these kind of pages, you must tell to Apache to pass them to Joomla. To do this, just add this line at the end of your .htaccess file:

ErrorDocument 404 /


It should solve (remember to enable ReDJ plugin).

Luigi

Re: Rename catalog items 6 Anni, 4 Mesi fa #2375

  • vilena
  • Offline
  • Fresh Boarder
  • Messaggi: 7
admin ha scritto:
So I supposed right, you should use the second one:



I dont think so. I will explain:
I have a catalog that creates long links of products, like: www.site.com/catalog/category1/category2/item1, but i want to reduce them, to be: www.site.com/item1.

When I type in browser www.site.com/item1, it returns 404 page.

I think I should modify catalog component, isn't it?

Re: Rename catalog items 6 Anni, 4 Mesi fa #2376

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
I repeat...

If you get an error 404 from Apache, it means that Apache manages your request, so Joomla (and ReDJ) CAN'T DO NOTHING.

If you need to manage these kind of pages, you must tell to Apache to pass them to Joomla. To do this, just add this line at the end of your .htaccess file:

ErrorDocument 404 /


If you need help with this setting, send me an email at info(at)sistemistica.it.

Re: Rename catalog items 6 Anni, 4 Mesi fa #2377

  • vilena
  • Offline
  • Fresh Boarder
  • Messaggi: 7
Ok. Thanks!

Re: Rename catalog items 6 Anni, 4 Mesi fa #2391

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
U'r welcome.

L.
  • Pagina:
  • 1
Moderatori: admin
Tempo generazione pagina: 0.67 secondi
News
Cerca con Google
Chi è online
 83 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.