Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
324 views
in Technique[技术] by (71.8m points)

url rewriting - Rewrite rule to convert query string into fully realised url

I have some incoming links that use the following pattern...

http://www.example.com/resources/resource.aspx?page=my_example_query_string

I would like to rewrite them using this pattern So extracting the page value, replacing the underscores for hyphens and appending the result to the url, thus:-

http://www.example.com/resources/my-example-query-string

For a dotnet project. I feel this is more than a little regex, but I'm not sure how to proceed

question from:https://stackoverflow.com/questions/65884483/rewrite-rule-to-convert-query-string-into-fully-realised-url

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...