开发者

Is It A URL for Search Engines? If It Is, Then What Should I Do?

In order to steer visitors to the right tab, I put ?tab=1 at the end of a url. Then used JavaScript to open that tab when visitors clicked that URL.

Put it in other way. One page has two "URL"(I am not sure if they are). One is www.domain.com/foo.html, the other, www.domain.com/foo.开发者_StackOverflow社区html?tab=2. Only click the last one, should the tab 2 opened.

Now, here is my question.

  • Are those two forms of "URL" trully different URL in the perspective of search engines? URL is supposed to refer to Resource Location not formation, as such they are only one, but I am not sure.
  • If they are, then I have to do some thing to inform search engines this situation, then what should I do? 301 REDIRECT? or rel=No indext or no follow? The latter one seems easy, but if I wrong, could search engines toss two of the url out of their database?

    Thanks you very much!


    Yes, both URLs are viewed as separate. The best way in this situation is to notify the search engines that the ?tab=1 url is a duplicate by using the rel="canonical" attribute within the link tag.

    Google's Webmaster Blog has an article on how to use it: http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html

    However, if the content on ?tab=1 is actually unique, you might have a different problem on your hands.

    Say your site is about cars, and your foo.html page is about Porches. If ?tab=1 is about the special alloy rims that come standard with the Porche, a searcher looking for "special alloy rims" will land on your foo.html page, then not find any information about the rims because it's hidden behind the tab, and then bounce. This is not a good user experience and could potentially impact your conversions.

    What you might want to consider is telling the search engines how to crawl and index your javascript tab appropriately.

    Google has instructions on how to make AJAX pages crawlable: code.google.com/web/ajaxcrawling/docs/getting-started.html

    This way your content gets crawled and indexed correctly, and users arrive at your site will see what they were searching for.

    note: AJAX crawling is currently specific to Google. It's not clear whether Bing/Yahoo is or will be supporting this proposed solution.


    "but I am not sure". You should, perhaps, read the appropriate standards. http://faqs.org/rfcs/rfc1738.html for example.

    You also need to read this: http://w3.org/Provider/Style/URI

    Are those two forms of "URL" trully different URL in the perspective of search engines?

    There's no generic "search engine". Each is unique. You have to make a list, and then ask each vendor whether or not query string matters. Google, for example, will not tell you anything about their search engine. Others might.

    Read the Definitions in the provided links. The query string isn't part of the URI. But a search engine might use it. Or might not. There's no general answer that applies to all search engines.

    have to do some thing to inform search engines this situation, then what should I do?

    There's no generic "search engine". Each is unique. Google, for example, will not tell you anything about their search engine. Others might.

    Some retain the 301/302 information. Some don't.

    search engines toss two of the url out of their database?

    There's no generic "search engine". Each is unique. Google, for example, will not tell you anything about their search engine. Others might.

    Some might work on the URI without the query string. Some might work on the URI with the query string.

    Here's the important point.

    There's no generic "search engine". Each is unique.

    Rather than worry about "search engines". Read the http://w3.org/Provider/Style/URI link and design your URI's correctly. That's the absolute best you can do.

  • 0

    上一篇:

    下一篇:

    精彩评论

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

    最新问答

    问答排行榜