Home  >  Q&A  >  body text

nginx 301 hidden forwarding

I found this when I was browsing Taobao recently. There is a product for 301 forwarding.

What is it calledHidden forwarding in the whole site
The effect is:
For example, my website is b.com
But the forwarding is set to a.com

When visiting the a.com/index.html page
In fact, the access is b.com/index.html
And the url displayed by the browser is a.com/index.html

How to do this.

I know that it is possible to do nginx reverse proxy proxy_pass.

But it seems that you have to use nginx traffic, and the speed must be slow.
Is there any other way?

PHPzPHPz2712 days ago800

reply all(2)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-05-16 17:27:23

    First of all, you need to understand what http 301 is. This return code is given to the browser, and then the browser re-initiates a request to access the new address.
    This is stipulated by the http protocol. How can you get around it unless you make a browser yourself. . .

    reply
    0
  • 阿神

    阿神2017-05-16 17:27:23

    No.

    reply
    0
  • Cancelreply