Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jQuery load()和SEO-导航的硬链接_Jquery_Seo_Load - Fatal编程技术网

jQuery load()和SEO-导航的硬链接

jQuery load()和SEO-导航的硬链接,jquery,seo,load,Jquery,Seo,Load,设想一个完全静态的网站,它使用jQuery.load()在每个页面上包含网站的主导航: page1.html, page2.html, 网页3.html,。。。 page100.html, nav.html(站点导航html) 使用jQuery加载主导航可能有利于可管理性(只需编辑一个包含的文件“nav.html”,减少重复代码),但不利于SEO(爬虫程序无法看到page1.html、page2.html等上的导航,因此无法对站点进行爬网) 我的问题是:如果每个页面上都有指向“nav.html”

设想一个完全静态的网站,它使用jQuery.load()在每个页面上包含网站的主导航:

page1.html, page2.html, 网页3.html,。。。 page100.html, nav.html(站点导航html)

使用jQuery加载主导航可能有利于可管理性(只需编辑一个包含的文件“nav.html”,减少重复代码),但不利于SEO(爬虫程序无法看到page1.html、page2.html等上的导航,因此无法对站点进行爬网)

我的问题是:如果每个页面上都有指向“nav.html”的硬编码链接, 这会帮助爬虫找到网站导航并绕过SEO问题吗?假设我们不能使用php或任何其他服务器端选项来包含html。爬虫是否需要直接链接到另一个页面而不是过渡页面(在本例中是nav.html)?爬虫会迷路吗

干杯


p.

按照用户1394965的建议查看渐进式增强,或者,查看这篇教我们使用pushstate或history.js来使用ajax内容的精彩文章,同时通过google:D进行爬行


我与该网站无关,只是将其添加到书签中,因为我发现它非常容易理解。

现在看起来不错。我肯定会进一步调查的。谢谢大家!