首页 文章

Angular JS Application不会在Google中抓取和编入索引?

提问于
浏览
0

我已经设置了所有内容来在Google搜索引擎中抓取我的Angular JS应用程序 .

Website url : http://templatic.net/test/

我为Angular JS app设置了 html5Mode ,并设置了为特定请求生成html快照 .

因此,当Google抓取工具到来时,它将获取我的网站网址,例如 http://templatic.net/test/?_escaped_fragment_=/job_category/mobile ,用于 http://templatic.net/test/job_category/mobile

但是,当我访问Google网站管理员并点击 Fetch as Google 获取特定链接时,它不会返回特定网址的HTML快照 .

此外,我在Google网站管理员工具中添加了 sitemap.xml 并且已被接受,但没有一个链接被编入索引 .

我不知道我做错了什么 .

1 回答

  • 0

    我有类似的问题 . 我正在使用iis服务器 . 我通过检查其用户代理捕获谷歌爬虫解决了问题,并重定向到另一个服务器渲染应用程序,我返回元标记 .

    这是我的iis重定向规则

    <rule name="Imported Rule 1" stopProcessing="true">
              <match url="(.*)" ignoreCase="false" />
              <conditions>
                <add input="{HTTP_USER_AGENT}" pattern="(facebookexternalhit)|(Twitterbot)|(Pinterest)|(Googlebot)|(developers.google.com)|(LinkedInBot)|(WhatsApp)" />
              </conditions>
              <action type="Redirect" url="https://myredirectionapp/snapshot?qp={R:1}" appendQueryString="false" />
            </rule>
    

相关问题