【发布时间】:2010-12-25 03:28:46
【问题描述】:
我有http://thewebsite.com/blah/category/hello.html
我们需要将任何带有 /blah/ 的 url 重定向到站点的根目录,以便新的 url
http://thewebsite.com/category/hello.html
我们如何使用 iis7 做到这一点?提前致谢。
编辑:我刚刚了解到我们的问题不是关于 301 重定向,而是关于 url 重写。我们实际上正在使用带有永久链接/index.php/%category%/%postname%.html 的wordpress,并且网址是这样的:http://thewebsite.com/index.php/categoryname/hello.html。那么在 IIS7 上使用 Url Rewrite,我们如何才能将 url 设为http://thewebsite.com/categoryname/hello.html?非常感谢!
【问题讨论】:
标签: iis-7 url-rewriting