Answer the question
In order to leave comments, you need to log in
How to implement redirect depending on header and path?
I need a redirect to a particular url depending on the path and title (or rather the OS in the title).
For example, /search redirects to yandex from an iPhone and to google from an android.
How can this be implemented?
Answer the question
In order to leave comments, you need to log in
Make conditions with regular expressions that bypass the corresponding heading. But in general, this is not the most kosher way to use nginx - usually such logic is left inside the application.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question