Redirect ID+Alias --> to ----> Alias
-
javierv@ocioimagen.com
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 14
-
Thank you received: 0
-
-
11 years 3 months ago - 11 years 3 months ago #1924
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: 11 years 3 months ago by javierv@ocioimagen.com.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
11 years 3 months ago #1926
by admin
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
-
Less
More
-
Posts: 14
-
Thank you received: 0
-
-
11 years 3 months ago - 11 years 3 months ago #1927
by javierv@ocioimagen.com
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: 11 years 3 months ago by javierv@ocioimagen.com.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
11 years 3 months ago #1931
by admin
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
-
Less
More
-
Posts: 14
-
Thank you received: 0
-
-
11 years 3 months ago #1933
by javierv@ocioimagen.com
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.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
11 years 3 months ago #1935
by admin
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.149 seconds