mardi 27 septembre 2016

How to hide intermediate URL using nginx

Say I have a site abc.com and wish user accessing this site to be directed to abcd.com using nginx. And for physical web app not to see the abc.com at all. Is that possible.

server {
     server_name abc.com www.abc.com;
     location / {
           rewrite ^ $http://ift.tt/2cSrVx0 present;
     }
}

The above code does do redirect from abc.com to gmail.com, but the problem is that for physical web app, the url shown is still abc.com I would like the url to be https://www.gmail.com.

Question: Can I somehow hide this middle url abc.com entirely to third party apps like physical web ?




Aucun commentaire:

Enregistrer un commentaire