将多个域指向IIS7上的一个网站 [英] Point multiple domains to one website on IIS7

查看:148
本文介绍了将多个域指向IIS7上的一个网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这不是SEO相关的任何方式请不要发布关于SEO排名的任何事情因为它不是这里的因素。

This is not SEO related in any way please do not post any thing about SEO ranking as it is not a factor here.

我有2个网址

old.websitename.com和new.websitename.com

old.websitename.com and new.websitename.com

我需要支持两个网址一段时间而不是在IIS中创建2个站点,我想看看是否有办法通过托管一个站点来实现这一点。

I need to support both urls for a certain length of time and rather than creating 2 sites in IIS I wanted to see if there was a way of doing this by hosting just a single site.

我无法对其进行任何重定向网址和两个网址都需要处于活动状态,例如我无法让用户访问old.websitename.com并重定向到new.websitename.com。如果他们去old.websitename.com他们需要留在那个网址上而不是以任何方式重定向。

I can not do any redirects on the urls and both urls will need to be active eg I can not have a user go to old.websitename.com and be redirected new.websitename.com. if they go to old.websitename.com they need to stay on that url and not be redirected in any way.

这可以在IIS 7上完成(注意这是IIS不是Apache或基于PHP)

Can this be done on IIS 7 (note this is IIS not Apache or PHP based)

推荐答案

您只需要为每个主机名创建一个绑定。

You just need to create a binding for each hostname.


  1. 右键单击该站点。 编辑绑定

  2. 单击添加

  3. 输入主机名

  4. 为每个主机名重复1-3。

  1. Right click the site. "Edit Bindings"
  2. Click Add
  3. Enter the hostname
  4. Repeat 1-3 for each hostname.

这篇关于将多个域指向IIS7上的一个网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆