URL-重写网站中的动态产品和类别 [英] URL- Rewriting in website for dynamic product & category

查看:80
本文介绍了URL-重写网站中的动态产品和类别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过查询字符串调用我的所有类别和产品.如果有一次,我们将完成URL编写.如果我们在查询字符串上没有ID,那么我们将如何称呼我们的产品或类别.请为此提供帮助.

I am calling all my category and product through query string. If once we are done with URL -writing. Then how will we call our product or category if we are not having id on query string. Please assist me for this.

推荐答案

您将需要一些识别特定产品或类别的方法.这就是为什么在URL中最常使用ID的原因,因为ID是唯一的标识符.但是,如果您还有其他信息,这些信息可以提供足够的信息来获取您要查找的特定产品或类别,则可以按照这种方式进行查找.但是,我建议您使用ID来获取产品.有一种原因使之成为访问特定数据记录的常用方法.
You will need to have some way of identifying the specific product or category. That is why it is most common to use the id in the URL since the id is a unique identifier. However, if you have other pieces of information that provide enough information to get the specific product or category that you are looking for, you could do the look up that way. However, I would recommend using the id to get the product. There is a reason why it is the common way of accessing specific data records.


这篇关于URL-重写网站中的动态产品和类别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆