I have two servers. For instance let's call them SERVER-A with domain name www.server-a.com, and SERVER-B with domain name www.server-b.com. My codebases are written in magento and laravel.
Now my requirement is that when i access http://ift.tt/1NpcztM it actually renders the page from http://ift.tt/1K11pk3 without rewriting the url.
Redirection was a good option, but as i cant hamper the current url as a lot of seo is related to it, so i want to create an alternate option.
I checked out a lot of option for this kind of a communication but all the options found somehow seem incomplete from some or the other perspective. Options checked are:
- Load the external page via IFRAME.
- Use php fopen(www.server-b.com).
- CORS communication using jsonp or document.domain.
- The idea to implement a 3rd layer between the two servers with lets them communicate internally through itself(with the help of node.js etc ->still trying to figure out where i can go with this.) etc
But none of them gives me the resolution i need. Is their really a way where i simply type http://ift.tt/1NpcztM in the url and the page which loads is actually from http://ift.tt/1K11pk3 without rewriting the url or letting the user know that he has left the original site he has landed on to.
NOTE:- I am the owner of both the servers in this case. Also the separate domains can be changed into subdomains as per requirement. pls feel free to make any tweaks to the base configuration to achieve the requirement.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire