Mobile app version of vmapp.org
Login or Join
Gail5422790

: 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

@Gail5422790

Posted in: #Iis7 #Masking #Redirects

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.

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Gail5422790

3 Comments

Sorted by latest first Latest Oldest Best

 

@Shanna517

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.

10% popularity Vote Up Vote Down


 

@Tiffany637

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)

10% popularity Vote Up Vote Down


 

@Candy875

You can create two websites using IIS7 (I don't know the details as I only have IIS6) and point one at the directory with the files for /fr and one at the directory with the files for /en.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme