如何配置 IIS Redirection?

来源:互联网 发布:文墨飞星排盘软件 编辑:程序博客网 时间:2024/05/16 02:01

今天收到客户的一个需求,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
原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 苹果手机6坏了怎么办 苹果6p无限重启怎么办 苹果手机开不了机怎么办 苹果6s无限重启怎么办 苹果6s一直白屏怎么办 苹果6白屏了怎么办 苹果6s听筒掉漆怎么办 苹果6splus跳屏怎么办 蘑菇街发货好慢怎么办 买手机不给开票怎么办 泰迪狗皮肤病怎么办 狗狗皮肤病严重怎么办? 钢梁高厚比超限怎么办 手机壳按键难按怎么办 层间位移角超限怎么办 淘宝店排名靠后怎么办 如果地震了你会怎么办 地震来了怎么办60字 如果迷路了你会怎么办 吃多了抽烟想吐怎么办 晚上牙疼得要命怎么办 楼梯被火封锁后怎么办 牙齿疼怎么办能快速不疼 我被短信轰炸了怎么办 火警响了在家该怎么办 痔疮肉球变大了怎么办 痔疮长了好几个怎么办 苹果7手机丢了怎么办 如果油锅着火了怎么办 家里电气著火了怎么办 你家油锅起火了怎么办 交通事故后对方不肯去处理怎么办 租的车出了事故怎么办 借的车出了事故怎么办 台风来了怎么办小知识 台中班台风来了怎么办 地震时在五楼怎么办 小事故对方不来怎么办 发生交通事故对方不处理怎么办 当地震来了该怎么办 地震来了该怎么办教案