Answer the question
In order to leave comments, you need to log in
How to cut part of the url before the question mark and make a redirect?
Good afternoon. There is a url => example.com/compgraf/space/25623/3717/lesson.doc?width=1&height=y
You need to cut /compgraf/space/25623/3717/lesson.doc and paste at the end example.com/download.html ?file= to get the following request:
example.com/download.html?file=/compgraf/space/25623/3717/lesson.doc
Tell me how to make a redirect in the location section using ngnix. Thank you!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question