如何配置 IIS Redirection?

今天收到客户的一个需求,H公司之前一直在使用一个固定的网站放一些公司要发布的消息,公司员工可以访问查看。现在环境要做rebuild搬移动作,从公司IT管理角度打算对此网站定义一个新的URL使用。但是公司内部员工一直使用之前URL,即使通知员工使用新地址访问,因为使用者已经习惯打开之前地址还是会出现无法访问的情况,降低使用者体验。

 

针对这一问题,推荐使用的方案是配置IIS Redirection,这样无论使用者是输入之前的Site URL还是新的SiteURL都可以跳转到新的site collection访问相同内容。

 

下面我们就来看下要如何配置IISRedirection

  1. 下面是之前Site Collection的网站地址:

Machine generated alternative text:丨 Home 寸 C [ 」 www.news.com/SitePages/Home.aspx Site Actions 響 Browse Search 亡 , site. IIS · Home H 0n1 e Libraties Slte Pages Shared Documents Llsts Calendar Tasks DISCLlSSlOns Team Welcome to your site! Add a n eW image, change this welcome text or add n eW lists to this page by clicking the edit button above. You can click on Shared Documents to add files or on the calendar to create n ew team events. use the links in the getting started section to share your Slte and customize Its 100k. Shared Documents Modified 鉀 Modified Type N am e

  1. Windows Server中打开Server Manager,点击Add Roles and Features,在Server Roles里找到HTTP RedirectionInstall

Machine generated alternative text:Select server roles Before 、 tu Begin 丨 n 三 廳 , cn 彎 ; Serwer Selectlon Server R , 三 三 Features Cc:nfrmzticr Add Roles and Features Wizard Select one or more roles to install on the selected server. 0 三 三 T 丨 N T 丨 ON SERVER 三 p2010 〕 0 m Description Common HTTP Features supports basic HTTP functionality, such 3 ' delivering standard file formats an 以 properties. Use Common HTTP Features to create custom error messages, to configure how the server responds 忆 requests that 匕 0 not specify document, or 10 au 忆 m iC 引 , redirect some requests to 3 different location Ro 丨 立 囗 Web Sewer 〔 I 下 t 引 引 〔 0 m m on HTTP Features : 丨 n 訓 1 丨 丨 Default Document (Installed) 丨 丨 Directory Browsing ()n , 丨 丨 HTTP Errors (Installed) 丨 丨 Static Content (Installed) 丨 丨 Redirection ()n , 丨 e 」 匹 三 丨 丨 Health and D g , 105b0 ()n 丨 丨 Performance ()n 立 Security 〔 In 靈 訓 丨 丨 Application Development (Installed) FTP Server ( Cancel Next > Install

  1. 打开IIS Manager页面,找到要配置IIS RedirectionSharePoint Web Application对应的IIS Site,选择此 site,点击右边显示的HTTP Redirect

Machine generated alternative text:奁 , . 11 ) SP2010AIO View Help Sta Page Sit Internet Informatlon Servlces @$ Manager SharePoint www. n ews 〔 om & 〕 Directory Browsing 乊 ISAPI Filters WebDAV Authori... www.news.com/O Home , , Go 丨 丨 Group by: Area SharePoint Filter: Authentic... 叾 Error Pages Fal I ed SP2010AIO (DEMOIadmin1strator) : 2 Application Pools Sit > 0 Default Web Site > SharePoint & 〕 SharePoint - www.news.com/O > SharePoint www.test 〔 om & 〕 > SharePoint Central Administration v4 > 0 SharePoint Web Services Authorizat... Rules Ha n 引 er Mappings Modules 嗵 Redirect Output Cachi Compression Respon. . Request Filtering Default Document I P Address and Doma.. SSL Settings Logging Request Tra... MIME Types

  1. 双击打开HTTP Redirect的设置,勾选“Redirect requests to this destination:”,填写新的URL地址,并在Status code中选择Permanent (301),点击右上方Apply保存设置。

Machine generated alternative text:奁 一 11 SP2010AIO View Help Sta Page Sit Internet Informatlon Servlces @$ Manager ShareP01nt www. n ews 〔 om & 〕 / Apply Cancel HTTP Redirect Use this feature to specify rules for redirecting incoming requests to another file or URL. 丨 丨 Redirect requests to th15 destination: http://www.system 00m Example: h p : w ' ^ v 工 onto ' 0 工 om 鑫 訕 Redirect Behavior [ 〕 Redirect all requests to exact destination (instead of relative to destination) [ 〕 On , redirect requests to content in this directory (not subdirectories) Status 00d 已 Permanent (301) SP2010AIO (DEMOIadmin1strator) : Application Pools Sit > 0 Defa u Web Site > SharePoint & 〕 > SharePoint . 、 、 、 、 w.new ' 工 om & 〕 > SharePoint www.test 〔 om & 〕 > SharePoint Central Administration v4 > 0 SharePoint Web Services

  1. 此时使用旧的site collection URL和新的site collection URL都会调整到相同位置,显示新定义的site collection URL

Machine generated alternative text:: 1 丨 Home ÷ C [ www.system.com/SitePages/Home.aspx Site Actions 07 e Systel Search “ IIS · Home H 0n1 e Libraries Slte Pages Shared Documents Llsts Calendar Tasks DISCLlSSlOns Team Welcome to your site! Add a n eW image, change thlS welcome text or add n eW IISts to this page by clicking the edit button above. You can click on Shared Documents to add files or on the calendar to create n ew team events. use the links in the gettlng started sectlon to share your Slte and customlze Its 丨 00k . Shared Documents Modified 鉀 Modified Type N am e

 

 

至此,IIS Redirection就配置好了,感谢阅读。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值