开发者

Easy IIS7 Rewrite Redirect Question

开发者 https://www.devze.com 2023-01-16 16:19 出处:网络
I\'m just getting to grips with IIS7 redirect and having problems doing something that should be really simple:

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

精彩评论

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

关注公众号