duanjun7801 2008-10-22 06:46
浏览 44
已采纳

如何让搜索引擎找到我的AJAX内容

I have a page which dynamically loads a section of content via AJAX. I'm concerned that this means the content will not be found by search engines.

To show you what I mean, the site is at http://www.gold09.net and the dynamic content is at /speakers.php - Normally no one would visit that second link, it's just loaded into the first page.

I know I can tell the crawlers to read the speakers.php by using a sitemap.xml, but then I'll get links to the speakers.php showing up in search results.

I guess the ultimate solution would be so that if someone requests /speakers.php it redirects them to the main page, whereas it lets crawlers read the data.

Any suggestions?

  • 写回答

3条回答 默认 最新

  • doulubashang6936 2008-10-22 09:13
    关注

    Update: What I've done is this:

    Created another page called viewSpeakers.php which just includes the speakers.php file with the standard header and footer around it. This means that if someone goes to that site, then they'll see a vaguely attractive page. The only links to that page are in the HTML of the index.php page (where it immediately get removed via javascript) and in my sitemap.xml.

    The effect of this is that the search engine crawlers and users who have javascript disabled get to see a link to information about the speakers. People who have javascript enabled get the AJAXy goodness of the data being loaded dynamically on the same index page and they never have to know about the viewSpeakers.php page.

    The only downside I can forsee is that someone might come to the viewSpeakers.php page via a search listing, and then not be able to find a link back to that page from the index.php. Not really too much of a problem...

    This was added as an answer, rather than editing the question, because it's one way to solve this problem. I'd still be interested to know if there's a better way than this.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 不同模型怎么用同一个shader
  • ¥15 安卓启动没有ais proxy与v4l2的log打印
  • ¥15 go怎么读取mdb文件里面的数据
  • ¥60 Matlab联合CRUISE仿真编译dll文件报错
  • ¥15 脱敏项目合作,ner需求合作
  • ¥15 脱敏项目合作,ner需求合作
  • ¥30 Matlab打开默认名称带有/的光谱数据
  • ¥15 res.rows如何取值使用
  • ¥15 在odoo17开发环境中,怎么实现库存管理系统,或独立模块设计与AGV小车对接?开发方面应如何设计和开发?请详细解释MES或WMS在与AGV小车对接时需完成的设计和开发
  • ¥15 CSP算法实现EEG特征提取,哪一步错了?