English 中文(简体)
(sharp) # sign in query string and SEO
原标题:
  • 时间:2009-11-23 19:03:59
  •  标签:
  • ajax
  • seo

I have a site Index.html and there is a categories menu generated from database. Menu consists of HTML anchors, but href attribute is always something like "Index.html#cat=xyz" because content of each category is generated through AJAX call.

<a href="Index.html#cat=1" onclick="javascript:LoadHref("cat","1");"></a><br />
<a href="Index.html#cat=2" onclick="javascript:LoadHref("cat","2");"></a><br />
<a href="Index.html#cat=3" onclick="javascript:LoadHref("cat","3");"></a><br />

From the AJAX side everything works, but I want to ask if for example Google or other search engine will index these links which contains # (sharp) sign. Thanks for answers.

最佳回答

You re asking the wrong question. If you want your links to be indexed, make them obvious to a crawler about the content. Multiple links to the same page won t help your SEO efforts. Consider creating a separate page for "contacts" "investor information" "careers" (or whatever your categories are) and publishing them. Then your link becomes

<a href="careers.html">careers</a>

etc. When a human sees this link (your actual end target) he ll be able to make a better choice whether or not it s the "right" result.

问题回答

using it like that will not work good for search engins and for users not have javascript enabled.

you need to make it lie facebook url redirect with seo friendly

you will need to use jQuery Hash url

Regards

Use ajax and when the user click on the link use the attribute - onclick="LoadHref( cat , 1 );return false;"





相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...

热门标签