nginx 301 hidden forwarding
PHPz
PHPz 2017-05-16 17:25:23
0
2
753

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?

PHPz
PHPz

学习是最好的投资!

reply all (2)
淡淡烟草味

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. . .

    阿神

    No.

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!