我們有一個根據定義的子域動態加載AngularJS應用程序的目錄。例如:http://subdomain.billiving.bizAngularJs SEO標題支持
我們需要支持由AngularJS設置的動態標題。我在Google文檔中看到,我們需要添加以下鏈接:
<meta name="fragment" content="!">
還有什麼我們應該做的正確設置? 感謝
我們有一個根據定義的子域動態加載AngularJS應用程序的目錄。例如:http://subdomain.billiving.bizAngularJs SEO標題支持
我們需要支持由AngularJS設置的動態標題。我在Google文檔中看到,我們需要添加以下鏈接:
<meta name="fragment" content="!">
還有什麼我們應該做的正確設置? 感謝
我終於結束了使用推送國家。這包括兩個變化:
啓用Html5Mode:
.config(['$locationProvider', function($locationProvider) {
$locationProvider.html5Mode({enabled: true});
}]);
從您的應用程序提供了基本href(工作地方需要全天本地主機路徑時)
<base href="/">
就是這樣。
你必須遵循HashBang URL標準或HTML5 URL
喜歡的東西
angular.module('app', []).config(['$locationProvider', function($location) {
$location.hashPrefix('!');
}]);
這裏是很好的指南,遵循Angular SEO
谷歌已棄用哈希碎片URL方案,HTML5模式是要走的路 – JMK