Цытыта:
How will you support search engine indexing?
Search engines point "robot" scripts to a website and have them accumulate a collection of pages. The robot works by scooting through the website, finding standard links to standard URLs and following them. It won't click on buttons or type in values like a user would, and it probably won't distinguish among fragment identifiers either. So if it sees links to
Ссылка скрыта от гостей
and
Ссылка скрыта от гостей
, it will follow one or the other, but not both. That's a big problem, because it means an entire Ajax application will only have one searchlink associated with it, and you'll have miss out on a lot of potential visits.
The simplest approach is to live with a single page and do whatever you can with the initial HTML. Ensure it contains all info required for indexing, focusing on meta tags, headings, and initial content.
A more sophisticated technique is to provide a Site Map page, linked from the main page, that links to all URLs you want indexed with the link text containing suitable descriptions. One catch here: you can't link to URLs with fragment identifiers, so you'll need to come up with a way to present search engines with standard URLs, even though your application would normally present those using fragment identifiers. For example, have the Site Map link to
Ссылка скрыта от гостей
and configure your server to redirect to
Ссылка скрыта от гостей
. It's probably reasonable to explicitly check if a robot is performing the search, and preserve the URL if that's the case - i.e. when the robot requests
Ссылка скрыта от гостей
, simply output the same contents as the user would see on
Ссылка скрыта от гостей
. Thus, the search engine will index
Ссылка скрыта от гостей
with the correct content, and when the user clicks on a search result, the server will know (because the client is not a bobot) to redirect to
Ссылка скрыта от гостей
.
Search engine strategies for Ajax applications has been discussed in a
Ссылка скрыта от гостей
detailed paper by Jeremy Hartlet of Backbase. See that paper for more details, though note that some advice is Backbase-specific.