我在IIS 6中部署了一个wordpress博客。我想重定向URL:
www.myblog.com/index.php/2012/03/的 14 /注释
到
www.myblog.com/index.php/2012/03/的 12 /注释
有没有办法通过使用IIS或我将修改PHP代码?感谢
答案 0 :(得分:1)
你可以使用ISAPI_Rewrite,这是一个强大的基于正则表达式的IIS重写器。
你可以使用类似的东西:
RewriteBase /
RewriteRule ^(。+)/ 14 / notes /(.+)$ $ 1/12 / notes / $ 2 [NC,R = 301,L