× Here you can get community support related to ReDJ.

Redirect ID+Alias --> to ----> Alias

  • javierv@ocioimagen.com
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 4 months ago - 10 years 4 months ago #1924 by javierv@ocioimagen.com
Redirect ID+Alias --> to ----> Alias was created by javierv@ocioimagen.com
Hi,

Sorry for come back again. I'm trying to learn REdJ but I think maybe I'm something "Slow" ;(
I can't find it in another topics.

I've have 2 url working in my site:

host/category/subcategory/ID article-Alias-article/

And

host/category/subcategory/Alias-article/

I need redirect url with ID article to the second option: host/category/subcategory/Alias-article/

Can you help me?

Google kick my ass for duplicates.

Thanks.

Regards.

Alex.
Last edit: 10 years 4 months ago by javierv@ocioimagen.com.

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #1926 by admin
Replied by admin on topic Redirect ID+Alias --> to ----> Alias
Hi,
it is pobsible but to build a rule I need the full old and new URLs, because I don't understand how the full URL is after /Alias-article/

Please Log in or Create an account to join the conversation.

  • javierv@ocioimagen.com
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 4 months ago - 10 years 4 months ago #1927 by javierv@ocioimagen.com
Replied by javierv@ocioimagen.com on topic Redirect ID+Alias --> to ----> Alias
OK, sorry.

In Joomla 2.5,

The bad urls is: mysite.com/category1/subcategory/1-this-is-my-article
I make a change in component and the urls is without ID article ("1" in example), but the old urls works.

I need redirect to urls without id article.

Thanks.

Regards.

Alx.

(I can send you original url in private)
Last edit: 10 years 4 months ago by javierv@ocioimagen.com.

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #1931 by admin
Replied by admin on topic Redirect ID+Alias --> to ----> Alias
Try this:
From URL: ^/category1/subcategory/[0-9]+-
To URL: http://{siteurl}/category1/subcategory/${a}
Request only: true (checked)
Placeholders:a={preg_match 1}/\/category1\/subcategory\/[0-9]+-(.*)/i{/preg_match}

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

  • javierv@ocioimagen.com
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 4 months ago #1933 by javierv@ocioimagen.com
Replied by javierv@ocioimagen.com on topic Redirect ID+Alias --> to ----> Alias
Hi!
Really thanks for your time.
I'm sorry but is not working because redirect to de same url.

(Really I need study your component, Is very good but never I could write your code now)

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #1935 by admin
Replied by admin on topic Redirect ID+Alias --> to ----> Alias
Sorry,
which version are you using? Community or Enterprise?

My component is not so complicated, but it uses regular expressions,and these are ... :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.138 seconds