简体   繁体   English

IIS重定向到外部网站

[英]IIS redirection to external web site

Is it possible to create local web site in local IIS with some domain, for example. 例如,是否可以在具有某些域的本地IIS中创建本地网站。 dummy-website 虚拟网站

and when locally enter that domain to be redirected to some other web site in internet, note that after redirection url need to stay dummy-website, content of web site from internet needs to be displayed in requested local domain. 当本地输入要重定向到Internet中其他网站的域时,请注意,重定向URL需要保留虚拟网站后,来自Internet的网站内容需要显示在请求的本地域中。

Tnx 特纳克斯

yes there is: 就在这里:

In IIS Manager, expand the local computer, right-click the Web site or directory you want to redirect, and click Properties. 在IIS管理器中,展开本地计算机,右键单击要重定向的网站或目录,然后单击“属性”。

Click the Home Directory, Virtual Directory, or Directory tab. 单击主目录,虚拟目录或目录选项卡。

Under The content for this source should come from, click A redirection to a URL. 在“该来源的内容应来自”下,单击“重定向到URL”。

In the Redirect to box, type the URL of the destination directory or Web site. 在“重定向到”框中,键入目标目录或网站的URL。 For example, to redirect all requests for files in the Catalog directory to the NewCatalog directory, type /NewCatalog. 例如,要将目录目录中的所有文件请求重定向到NewCatalog目录,请键入/ NewCatalog。

and there you go! 然后你去! Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM