开发者

Easy IIS7 Rewrite Redirect Question

I'm just getting to grips with IIS7 redirect and having problems doing something that should be really simple:

I'd like to redirect all requests for domain.net/post and redirect to domain.net/blog/post and keep the parameters so example:

www.domain.net/post/how-to-do开发者_如何学编程-something.aspx -> www.domain.net/blog/post/how-to-do-something.aspx

Any ideas please!?

Thanks

Dan


The pattern could be

^post/(.)$ or ^post/([a-z0-9-])$

and the URL rewrite

blog/post/{R:1}

(but I haven't tested yet)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜