301重定向IIS [英] 301 Redirect for IIS
问题描述
当我使用Apache时,我使用.htaccess将自定义路径重定向到某个页面。
When I've used Apache, I used .htaccess to redirect a custom path to a certain page.
但我的新网站托管在Windows服务器上,我无法找到任何有关为旧网页设置重定向的帮助。
But my new site is hosted on a Windows server and I cant find any help on setting up redirects for old pages which have been deleted for new pages.
示例。当人们访问
[domain] /ValveMonitoring/valveleak.php
[domain]/ValveMonitoring/valveleak.php
他们应该被转发到
[domain] /valve-monitoring/midas-meter.php
[domain]/valve-monitoring/midas-meter.php
有人可以帮忙吗?
推荐答案
在IIS7及更高版本中执行此操作的最简单方法是安装URL Rewrite模块。请参阅以下文档: http://learn.iis.net/ page.aspx / 734 / url-rewrite-module
The easiest way to do this in IIS7 and beyond is to install the URL Rewrite module. Please see the following for documentation: http://learn.iis.net/page.aspx/734/url-rewrite-module
这篇关于301重定向IIS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!