Git not pushing my sitemap on public folder

227 views Asked by At

I'm using ruby on rails sitemap_generator gem.

When I make new sitemap with ruby sitemap.rb command it displays this:

+ sitemap.xml.gz                                          11 links /  527 Bytes
Sitemap stats: 11 links / 1 sitemaps / 0m00s

Pinging with URL 'http://domain.com/sitemap.xml.gz':
  Successful ping of Google
  Successful ping of Bing

But when I test my sitemap with google webmaster tools or other service it all displays I have only 3 links.

How can I fix it?

Here is my sitemap.rb file

require 'rubygems'
require 'sitemap_generator'

SitemapGenerator::Sitemap.default_host = "http://domain.com"
SitemapGenerator::Sitemap.create do

  add '/about'
  add '/contact'
  # under services category
  add '/heyheyhey'
  add '/hey'
  add '/heyhey'
  add '/eur'
  add '/blog' , :changefreq => 'weekly'
  add '/blog/this-is-it'
  add '/blog/my-blog-post'
  add '/blog/crazy-blog'
end
SitemapGenerator::Sitemap.ping_search_engines
0

There are 0 answers