问题描述
你好,
我对ASP.Net中的编程很新。
我创建了一个包含网上商店的网站,其中产品信息包含在数据库中。
当显示一个产品的详细信息页面时,网址显示... aspx?ProductCode =< number>
当用户在Google搜索中输入productNAME(包含在我的数据库中),我希望Google Result paga显示指向该产品相应详细信息页面的链接。
如果我理解正确,需要url rewritin所以page-url显示..aspx /< productname> ;.
我该怎么做?
我是否必须提取< productname>从URL中,然后在数据库中搜索相应的ProductNumber,并将URL更改为..aspx?ProductCode =< number>在服务器端?
Google如何知道我的数据库中包含哪些产品,因此会显示在Google搜索结果中?
任何帮助表示赞赏!
Hi there,
I'm quite new to programming in ASP.Net.
I've created a website containing a webshop where the information of products is contained in a database.
When the detailpage of one product is shown, the url shows ...aspx?ProductCode=<number>
When a user enters a productNAME (that is contained in my database) in the Google Search, I want the Google Result paga to show a link to the corresponding detailpage of that product.
If I understand this correctly, and need url rewritin so the page-url shows ..aspx/<productname>.
How do I do this ?
Do I have to extract the <productname> from the URL, then search for the corresponding ProductNumber in the database, and change the url to ..aspx?ProductCode=<number> on the server-side ?
How does Google know what products are contained in my database, so the are shown in the Google Search results ?
Any help appreciated !
推荐答案
这篇关于用于SEO的ASP.Net URL重写和产品名称搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!