ad_728x90

參觀我的【 伊生活小舖】

2013年7月7日 星期日

Submit Google Sitemap Directly To Robots.txt File Of Your Blogspot Blog


    whenever you create a blog or website,
you have to submit the website to Google so that someone can find your website on Google. You can do the same by submitting your xml sitemap to Google Webmaster tool.

Sitemap will hold all the posts of your blog. So every time you submit something in your blog, your sitemap will update and so Google. You can simply submit your rss link to Google webmaster tool easily like below screen.




But here the problem is the default Google xml sitemap file can only have latest 26 posts only. That means Google will not crawl your other pages, besides latest 26 pages and also those posts will not get indexed. So in that case, you can fix this issue just by adding a few lines of extra code.


Simply submit this above line in Google sitemap and get relaxed. This line will tell Google bot to index pages from page 1 to till page 500. Now your blog have more than 500 pages, then you have to add one more line like below and go on.




Besides that you can also edit the Custom robots.txt section of your webmaster page and directly paste the code below. This will help Google boot to find your complete sitemap every time it comes to your website.

Your default robot.txt section will be updated with below code.


User-agent: Mediapartners-Google
Disallow: 


User-agent: *Disallow: /searchAllow: /Sitemap: http://www.getaheadindia.in/feeds/posts/default?orderby=UPDATED

Check your Webmaster Account >> Health >>Blocked Urls section.

You can simply replace this code with the below one.


User-agent: *
Disallow: /search
Allow: /
Sitemap: http://www.getaheadindia.in/atom.xml?redirect=false&start-index=1&max-results=500
Sitemap: http://www.getaheadindia.in/atom.xml?redirect=false&start-index=501&max-results=500


Now add the line multiple times as per your blogs total posts. This will tell Google boot every time to crawl your entire blog without manual pinging.

COMMENTS HAVE BEEN DISABLED FOR THIS POST [文章的評論已被禁用]

Ratings and Recommendations by outbrain