× Here you can get community support related to ReDJ.

Redirect only sub category

More
8 years 10 months ago #3971 by jacu
Redirect only sub category was created 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 :cheer: :cheer:

Giacomo.

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

More
8 years 10 months ago #3972 by admin
Replied by admin on topic Redirect only sub category
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.080 seconds