Home Forum
2024-12-22
Benvenuto, Ospite
Nome Utente Password: Ricordami

Redirection similar urls
(1 Online) (1) Ospite
  • Pagina:
  • 1

ARGOMENTO: Redirection similar urls

Redirection similar urls 14 Anni, 3 Mesi fa #1374

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

actually, I'd like redirect urls with similar parts, in that way:

from: mysite.com/component/content/article/59-category-name/138-article-name.html

to: mysite.com/category-name/138-article-name.html

so, I'm looking for a solution to remove this part of url "component/content/article/59-"

How can I do it? What should I put into from url and to url.

Thanks in advance,
Marcin
L'Argomento è stato bloccato.

Redirection between similar urls 14 Anni, 3 Mesi fa #1376

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

First of all - thanks for the great component : )

Anyway, I'd like to make the redirections. I've tried few ways, but they don't work, so now I haven't clue, how should I do it.

The redirections look like e.g.:

From url: www.mysite.com/component/content/article/59-CategoryName/138-ArticleName.html

To url: www.mysite.com/CategoryName/138-ArticleName.html

So actually, I'd like to remove exactly this part of url: component/content/article/59-

Articles category will be constant, unchanging, but article names will change.

How should I do it?

Thanks in advance,
Marcin
L'Argomento è stato bloccato.

Re: Redirection similar urls 14 Anni, 3 Mesi fa #1381

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Hi,
last ReDJ version starts to support dynamic destinations through macros. As example, on a URL like this:

http://www.yoursite.com/section/cat/index.php?task=view&id=32#anchorthis


You could use:

To URL: http://{siteurl}/{pathltrim /section}


To obtain this at "runtime":

To URL: http://www.yoursite.com/cat/index.php


In your case, if "component/content/article/59-" is static, the following ToURL should work as you neeed:

To URL: http://{siteurl}/{pathltrim /component/content/article/59-}


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

Re: Redirection similar urls 14 Anni, 3 Mesi fa #1396

  • Dragstone
  • Offline
  • Fresh Boarder
  • Messaggi: 4
Sorry, I tried them and they don't work.
Everything I'd like to do is redirect bunch of urls like e.g.:

from: www.mysite.com/component/content/article/59-CategoryName/100-ArticleName.html
to: www.mysite.com/CategoryName/100-ArticleName.html

from: www.mysite.com/component/content/article/59-CategoryName/200-ArticleName.html
to: www.mysite.com/CategoryName/200-ArticleName.html

from: www.mysite.com/component/content/article/59-CategoryName/300-ArticleName.html
to: www.mysite.com/CategoryName/300-ArticleName.html

So as I wrote - actually I only need to remove this part of url from each url: component/content/article/59-

Category name is static, article names are not static.

I've tried many macros, but I've no idea about right one.


Thanks in advance,
Marcin
L'Argomento è stato bloccato.

Re: Redirection similar urls 14 Anni, 3 Mesi fa #1397

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
For URLs like yours I have created an item as follow:

FromURL: /component/content/article/59-CategoryName/
ToURL: http://{siteurl}/{pathltrim /component/content/article/59-}


So, when I call:

http://mysite.com/component/content/article/59-CategoryName/100-ArticleName.html


I get redirected to:

http://mysite.com/CategoryName/100-ArticleName.html


If this don't work in your case, please, post or email the real address of your site to make some test. Also, dump the jos_redj table.

Regards,
Luigi
L'Argomento è stato bloccato.

Re: Redirection similar urls 14 Anni, 3 Mesi fa #1402

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

sorry for a delay. It's still doesn't work. I've had my website on local server yet, so I'll send you an e-mail with a real address within few days.
L'Argomento è stato bloccato.

Re: Redirection similar urls 14 Anni, 3 Mesi fa #1403

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
I'll wait for your news.

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