Dear All,
I'have some urls like these:
https://www.mydomain.com/catalog/category1
https://www.mydomain.com/catalog/category1/product1
https://www.mydomain.com/catalog/category1/product2
https://www.mydomain.com/catalog/category1/product3
...etc...
I have to redirect 301 only
https://www.mydomain.com/catalog/category1
to
https://www.mydomain.com/catalog/newcategory1
and not the other urls.
But if I do
location /catalog/category1 {
return 301 /catalog/newcategory1;
}
nginx redirect all the sub urls with https://www.mydomain.com/catalog/category1 as root to https://www.mydomain.com/catalog/newcategory1
How can I do?
Thank you very much.
Tarichecco
I'have some urls like these:
https://www.mydomain.com/catalog/category1
https://www.mydomain.com/catalog/category1/product1
https://www.mydomain.com/catalog/category1/product2
https://www.mydomain.com/catalog/category1/product3
...etc...
I have to redirect 301 only
https://www.mydomain.com/catalog/category1
to
https://www.mydomain.com/catalog/newcategory1
and not the other urls.
But if I do
location /catalog/category1 {
return 301 /catalog/newcategory1;
}
nginx redirect all the sub urls with https://www.mydomain.com/catalog/category1 as root to https://www.mydomain.com/catalog/newcategory1
How can I do?
Thank you very much.
Tarichecco