问题
"mydomain.com" is hosted on iis 7.5 and referenced at google,
For the same website, I need to use a second domain name: "mydomain.net" .
I would like to redirect people who type "mydomain.com" to "mydomain.net" without losing previous google referencing,
please how can I do that ?
Thanks in advance.
回答1:
Within IIS it is necessary to duplicate the mydomain.net
web site folder, and to link the duplicated web site to mydomain.com
, then select mydomain.com
and click on HTTP redirect (which should be enabled from IIS features) then "redirect requests to this destination checked, and make also "Redirect all requests to exact destination..." checked, with behavior status code:"Permanent 301 redirect".
You can find a further explanation here:
http://www.windowshostingasp.net/windows_hosting_forums/showthread.php?t=35
来源:https://stackoverflow.com/questions/9456721/how-to-forward-mydomain-com-to-mydomain-net-web-site