I
I
i_want_to_know_everything2016-01-15 07:47:32
Nginx
i_want_to_know_everything, 2016-01-15 07:47:32

Ngnix redirect?

How to make a redirect from site.com/old_url to site.com/new_url I understood
from the manual that this is the case, but it does not work

rewrite ^/new_url http://$server_name/old_url$1 permanent;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Romanenko, 2016-01-15
@i_want_to_know_everything

Need the opposite.
rewrite ^/old_url http://$server_name/new_url$1 permanent;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question