E
E
exxagw2016-06-29 00:03:12
Nginx
exxagw, 2016-06-29 00:03:12

How to make a 301 redirect on NGIX?

How to make redirects from urls:
site.ru/category/category1/blablabla
to
site.ru/news/blablabla
There are several hundred news, you need to change /category/category1/ to /news/ in the URL

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2016-06-29
@alsopub

Maybe:

rewrite ^/category/category1/(.+)$ /news/$1 permanent;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question