开发者

SEF url without passing id

Client need SEF URL for e-commerce site (ISS 6). We tried IonicIsapiRewriter and it works good.

Now consider the below url,

www.store.com/product/12345/men_tshirt开发者_如何学编程.html

This works fine. I write the rule to pass the id as query string (product.action?prt_id=12345)

But client wants the URL to be

www.store.com/product/men_tshirt.html

How to do this? Without passing product id how to identify the product?


In order to get this working as expected, the men_tshirt part needs to be the new ID to identify the resource that was formerly identified by 12345. So men_tshirt needs to be a unique value in that context.

Then you just need a mapping of those textual IDs onto numeric ID.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜