: IIS 7: Masking real domain I have a website with 2 languages. website.local/fr and website.local/en How can I redirect: myfrweb.com to website.local/fr and myenweb.com to website.local/en keeping
I have a website with 2 languages.
website.local/fr
and website.local/en
How can I redirect:
myfrweb.com to website.local/fr
and
myenweb.com to website.local/en
keeping the myenweb.com or myfrweb.com in the navigation url?
Because actually when I redirect myfrweb.com to website.local/fr, if I'm navigating to myfrweb.com, the url become website.local/fr.
More posts by @Gail5422790
3 Comments
Sorted by latest first Latest Oldest Best
If there's an actual need to maintain the original website, you can use IIS's rewrite module to rewrite the URLs, or if they have to be hosted on separate servers, IIS's rewrite module can also be set up as a reverse proxy.
Though generally the simpler the setup the better. If you can use paulmorriss' solution and just set up the public domains with properly configured vhosts, then there'd be no need for any rewriting/redirecting/reverse-proxying/masking.
You can either do url rewriting, this will show the original url in the browser but the browser will fetch content from the new url. This can be done either in asp.net or using an ISAPI rewrite filter or proxy.
Or you can server transfer which will send content from another page (so they must be the same site) on the original request.
Or you can use an xmlhttp request to fetch the page from the 2nd server to the first and then pass it on to the user (which means that you can fetch info from a hidden or 3rd party server)
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.