How to redirect a single request?

Hi all.
The task is to make substitution packages website qwe.ru but only certain links
For example with qwe.ru/q/XXX/asd where XXX is a numeric variable, and the rest of the path type qwe.ru, qwe.ru/asdasd to accept requests from the original site qwe.ru
Wrote sample of the desired links, these queries issued me the desired result, in other cases through the CURL request is sent to the original site, and the query comes blank. Probably due to the fact that in the HOSTS prescribed forwarding. Tried to register job left CURL through a proxy server, still empty result.
Somebody faced such problem how to solve? maybe there is a ready software?
July 12th 19 at 16:43
1 answer
July 12th 19 at 16:45
If you want to grabit website, then curl to pass the proper cookies, session, and UserAgent.
If qwe.ru the website your using nginx and a set of rewrite, you can build a new subdomain.

Find more questions by tags PHPProxy