Redirect only sub category
-
jacu
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 1
-
Thank you received: 0
-
-
9 years 5 months ago #3971
by jacu
Hi!
I'm try to do something like this
My structure
Category 1
- Sub-Category 1
- Sub-Category 2
- Sub-Category 3
- ...
the url of parent category is like this
1) /joomla/category.html
2) /joomla/category/sub-category-1.html
/joomla/category/sub-category-2.html
3) /joomla/category/sub-category-1/article-1.html
Is it possible to redirect the 2 url to the 1 without create one rule for each sub-category? The urls can contain this type of char:
-
[0-1a-z]
Thank you veeeery very much
Giacomo.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
9 years 5 months ago #3972
by admin
Hi Giacomo,
I am not sure about your question so, assuming you want to redirect ANY request to ANY subcategory:
/joomla/category/sub-category-1.html
/joomla/category/sub-category-2.html
Back to the main category, the rule is:
From URL: ^/joomla/category/
To URL: {scheme}://{host}/joomla/category.html
Request only: true (checked)
This works because the category URL is the only only without a / after the word "category" so it will not match the rule (causing loops). If this is not what you need, please, post an example for me (old url -> new url).
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
Time to create page: 0.159 seconds