IIS 7: Masking real domain

IIS 7: Masking real domain - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the IIS 7: Masking real domain error on your web browser. Problem :


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.


Solution :

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.



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)


We hope that this article has helped you resolve the redirects, iis7, masking error in your web browsers. Enjoy browsing the internet uninterrupted!

Comments

Popular posts from this blog

How to redirect to any domain [duplicate]

"302 found" for index page bad for SEO?

Create redirect from url like www.example.us/?p=100&option=