如何从IIS重定向带参数的URL

时间:2012-03-14 14:54:25

标签: php iis redirect url-parameters

我在IIS 6中部署了一个wordpress博客。我想重定向URL:

www.myblog.com/index.php/2012/03/的 14 /注释

www.myblog.com/index.php/2012/03/的 12 /注释

有没有办法通过使用IIS或我将修改PHP代码?感谢

1 个答案:

答案 0 :(得分:1)

你可以使用ISAPI_Rewrite,这是一个强大的基于正则表达式的IIS重写器。

你可以使用类似的东西:

  

RewriteBase /

     

RewriteRule ^(。+)/ 14 / notes /(.+)$ $ 1/12 / notes / $ 2 [NC,R = 301,L