我在asp.net中有一个奇怪的错误 [英] i have a Strange error in asp.net
问题描述
嗨
请原谅我的英语
i有一个网站在asp.net/vb.net
i使用重写url在web.config中使用这个方法
< rewrite url =^。* - T([0-9] +)/?$ *to =〜/ view.aspx?id = $ 1& op = 1processing =stop/>
此方法更改网址为此示例:
http://mysite.com/view.aspx?id=145&op=1
to
http://mysite.com/buy- a-bag-T145
和
http://mysite.com/view.aspx? id = 146& op = 1
to
http://mysite.com/buy-a-pencil-T146
一切都好!和我的网站工作正常,但在谷歌网站管理员工具,我有一些错误
谷歌网站管理员工具显示爬行错误,因为这个样本:
http ://mysite.com/buy-a-bag/buy-a-pencil-T145
在我看来,当Google抓取我的网站时,google index my网页页面不正确!!
Google将页面标题附加到另一个页面标题!并使用错误的网址制作新页面
首页:http://mysite.com/buy-a-bag-T145
第二页:http://mysite.com/buy-a-pencil-T146
google索引页面:http://mysite.com/buy-a-bag/buy-a-pencil- T145
不幸的是这个新页面(http://mysite.com/buy-a-bag/buy-a-pencil-T145)有服务器错误或未找到错误
任何人都可以帮我shirk这个错误??
hi
excuse me for my English
i have a site in asp.net/vb.net
i use rewrite url in web.config by using this method
<rewrite url="^.*-T([0-9]+)/?$*" to="~/view.aspx?id=$1&op=1" processing="stop"/>
this method change url as this samples:
http://mysite.com/view.aspx?id=145&op=1
to
http://mysite.com/buy-a-bag-T145
and
http://mysite.com/view.aspx?id=146&op=1
to
http://mysite.com/buy-a-pencil-T146
everything is OK! and my site work correctly but in Google webmaster tools, i have some errors
Google webmaster tools shown crawling error as this sample:
http://mysite.com/buy-a-bag/buy-a-pencil-T145
it seem to me that when Google crawl my website, google index my website pages incorrect!!
Google attach a page title to another page title! and make a new page with incorrect URL
first page: http://mysite.com/buy-a-bag-T145
second page: http://mysite.com/buy-a-pencil-T146
google indexed page: http://mysite.com/buy-a-bag/buy-a-pencil-T145
Unfortunately this new page (http://mysite.com/buy-a-bag/buy-a-pencil-T145) have server error or not found error
anybody can help me for Shirk this error??
推荐答案
*to =〜/ view.aspx?id =
*" to="~/view.aspx?id=
1& op = 1processing =stop/>
此方法更改网址,因为此示例:
http://mysite.com/view.aspx?id=145&op=1
to
http ://mysite.com/buy-a-bag-T145
和
http:/ /mysite.com/view.aspx?id=146&op=1
到
http://mysite.com/buy-a-pencil-T146
一切正常!我的网站工作正常正确,但在谷歌网站管理员工具,我有一些错误
谷歌网站管理员工具显示爬行错误,因为这个样本:
http:// mysite .com /买一个包/买一支铅笔-T145
在我看来,当Google抓取我的网站时,google索引我的网页页面不正确! !
Google将页面标题附加到另一个页面标题!并使用错误的网址制作新页面
首页:http://mysite.com/buy-a-bag-T145
第二页:http://mysite.com/buy-a-pencil-T146
google索引页面:http://mysite.com/buy-a-bag/buy-a-pencil- T145
不幸的是这个新页面(http://mysite.com/buy-a-bag/buy-a-pencil-T145)有服务器错误或未找到错误
任何人都可以帮我shirk这个错误??
1&op=1" processing="stop"/>
this method change url as this samples:
http://mysite.com/view.aspx?id=145&op=1
to
http://mysite.com/buy-a-bag-T145
and
http://mysite.com/view.aspx?id=146&op=1
to
http://mysite.com/buy-a-pencil-T146
everything is OK! and my site work correctly but in Google webmaster tools, i have some errors
Google webmaster tools shown crawling error as this sample:
http://mysite.com/buy-a-bag/buy-a-pencil-T145
it seem to me that when Google crawl my website, google index my website pages incorrect!!
Google attach a page title to another page title! and make a new page with incorrect URL
first page: http://mysite.com/buy-a-bag-T145
second page: http://mysite.com/buy-a-pencil-T146
google indexed page: http://mysite.com/buy-a-bag/buy-a-pencil-T145
Unfortunately this new page (http://mysite.com/buy-a-bag/buy-a-pencil-T145) have server error or not found error
anybody can help me for Shirk this error??
我还没有自己需要为我的网站提供这个特定的功能...但是我做的知道你可以使用Robots Meta标签来确保某些东西没有被索引而其他东西都是等等。
看看此 [ ^ ]
就像我说我从未使用过这个但是我我相信你可以通过链接获得谷歌的帮助:)
I have not yet myself had need for this specific feature for my sites... But I do know that you can use Robots Meta tags to ensure some stuff are not indexed and others are etc.
Take a look at this[^]
Like I said I have never used this but I am sure you will be able to get assistance from google on the link :)
这篇关于我在asp.net中有一个奇怪的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!