Answer the question
In order to leave comments, you need to log in
How to redirect a specific IP to a URL in Windows?
Good day :)
There is a task, it is necessary to redirect all requests that go to the site1.com domain to the address site2.com/param/param . Not just to another domain, but to this address with parameters.
How can this be implemented? It occurred to me only through hosts to redirect all requests to my VPS, and then, using the nginx server, redirect further to the desired address, but then do I need to organize this server as a proxy in order to return the response back? How can I do this or am I going in the wrong direction?
Please tell me how to solve such a problem in the simplest and fastest way, or at least in which direction to dig.
Thank you in advance.
Answer the question
In order to leave comments, you need to log in
If we are talking about a local machine, then the problem can be solved by editing hosts and a browser plugin that adds parameters to the request if the link matches the pattern (the most convenient are plug-ins like greasemonkey that allow you to run js depending on the link)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question