on .httaccess
, we use like this.
RedirectMatch 301 ^/food/(.*)$ http//:domain.com/food-for-healthy/$1
It works good. but we have a problem with 1 old link. we used to have a multi-site and the name is "food". it changed to "food-for-healthy"
Therefore we have changed like these.
RedirectMatch 301 ^/food/(.*)$ http//:domain.com/food-for-healthy/$1
and as you know,
http//:domain.com/food/
and
http//:domain.com/food
are same.
The problem is http//:domain.com/food
which needs to go to http//:domain.com/food-for-healty/
I have tried several things but it gets redirect error.
RedirectMatch 301 /food http//:domain.com/food-for-healthy
this gets a redirect error. how can I change it to work properly?