Pretty URLs for search pages

后端 未结 6 2115
隐瞒了意图╮
隐瞒了意图╮ 2020-12-01 13:31

I really enjoy having \"pretty\" URLs (e.g. /Products/Edit/1 instead of /products.aspx?productID=1) but I\'m at a loss on how to do this for pages

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-01 14:05

    We have a similar url rewriting, and using IIS 6, we have the redirect defined as:

    /content.aspx?url=$S&$P

    This takes a url of the form

    /content/page/press_room and makes it in the format

    /content.aspx/url=/page/pressroom&

    I'm not sure of the complete synyax options IIS has, but I'm sure what you want can be done in a similar way.

提交回复
热议问题