조금 봤지만 ui.routes가 작동하거나 작동하지 않는 경우 html5mode = true 및 $ locationProvider.hashPrefix ('!'); ui-router를 사용하면 사이트를 만들 수 있습니다. ie google에서 크롤링 할 수 있습니까? 나에게 힌트를 주시겠습니까?angularjs ui.routes modules html5mode 작동 여부
0
A
답변
0
ui.router
그것은 HTML5 모드를 사용합니다 $locationProvider.html5Mode(true).hashPrefix('!');
작업 않을 때 브라우저가 지원하거나, 지원이없는 경우에는 hashbang으로 되돌아갑니다. hashbang 같은 것을 볼 것이다 : 당신은 또한 구글이이 모든 것을 수행하는 URL 조각
<meta name="fragment" content="!">
에 대해 알고 도움이되는 메타 태그를 포함해야합니다
http://www.mysite.com/#!/mydirectory/file.html
검색 엔진이 액세스하는 방법을 결정하는 데 도움이 미리 컴파일 된 컨텐츠를 생성해야하지만 여전히 생성하고 제공해야합니다. 당신이 이미 이것을 보지 않은 경우에 SEO 부속이 어떻게 작동할지 몇몇 좋은 정보는 여기에서있다 : https://developers.google.com/webmasters/ajax-crawling/docs/specification?hl=fr-FR
0
예, 사이트 맵에 검색 공급자가 크롤링 할 페이지를 포함 할 수 있습니다.
예를 들어이 중 하나는 허용 될 수하십시오 sitemap.xml의에서
http://www.example.com/!/colorwheel/green
http://www.example.com/colorwheel/green
그것과 같을 것이다 :
<url>
<loc>http://www.example.com/colorwheel/green/</loc>
<changefreq>daily</changefreq>
<priority>1.00</priority>
</url>