0
votes

after reading multiple sources about angularjs and SEO (including google documentation), I understood that my 2 main options to get google to crawl my website are:

  1. Add hashbang (#!) to my URL, and after the request from the crawling engine has reached my server (in the request, the #! is replaced by escape_fragment) I should render and response html snapshot using external services (like prerender.io) or implement myself.

2.Add hashbang (#!) to my URL - so that google could tell that it has a dynamically rendered data in this url, and add sitemp.xml to the website. as it is shown here

This is how I handle the route:

mi.config(['$routeProvider','$locationProvider', function ($routeProvider, $locationProvider) {
$routeProvider.when('/home', { templateUrl: 'js/app/partials/Home/Home.html' });
$routeProvider.when('/items/:CatId', { templateUrl: 'js/app/partials/Items/Items.html' });
$routeProvider.when('/about', { templateUrl: 'js/app/partials/about.html' });
$routeProvider.when('/checkout', { templateUrl: 'js/app/partials/Checkout/Checkout.html' });
$routeProvider.when('/contact', { templateUrl: 'js/app/partials/contact.php' });
$routeProvider.otherwise({ redirectTo: '/home' });


$locationProvider.hashPrefix('!');

This is my sitemap.xml

my website

I saw in webmaster tools, that google recognized the new sitemap, but it didnt crawl them still.

Is there something I miss?

1
How were you able to determine Google didn't index your site?Code Whisperer
looking at the searh results in: site:chefnoded.co.il/shop and looking at the webmaster toolsHS1
It can take a while to cacheCode Whisperer
It was crawled over a week ago...HS1

1 Answers

0
votes

Consider using Google Web Master tool - Section Crawl to see if Google have found some error when crawling your site.

You can also try the feature "Fetch as Google" which would provide great insight on how Google see your Angular application.

In your specific case some pages (link from sitemap) do not return any crawlable content even if you are sending 200 as HTTP response:

http://www.chefnoded.co.il/shop/#!/items/6

http://www.chefnoded.co.il/shop/#!/items/5

http://www.chefnoded.co.il/shop/#!/items/4