N
N
Nikolai2021-05-20 11:46:19
htaccess
Nikolai, 2021-05-20 11:46:19

How to set redirection from one category to another?

There is a need to redirect all requests from category pages site.com/category/post-name/ to site.com/new-category/post-name/
Please tell me how to implement this through .htacces or other methods?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2021-05-20
@dodo512

Redirect 301 /category/ /new-category/
Or

RewriteEngine on

RewriteRule ^category/(.*) /new-category/$1 [R=301,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question