Board index   FAQ   Search  
Register  Login
Board index Website Administration Site & Server Administration Sitemaps

Cannot submit sitemap.xml to google

Sitemap Discussion

Cannot submit sitemap.xml to google

Postby Naina » Thu Mar 31, 2011 8:15 am

I just tried to submit sitemap.xml to Google Webmaster Tools.

But it gives following error
URLs restricted by robots.txt

We encountered an error while trying to access your Sitemap. Make sure that your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit.
But there is no robots.txt file in my directory.Even I tried to add a new robot. txt file without restrictions.
No success.
Naina
 
Posts: 1057
Joined: Tue Dec 21, 2010 12:26 pm

Re: Cannot submit sitemap.xml to google

Postby Emma » Thu Mar 31, 2011 8:15 am

Create a new robots.txt file with the following content:

User-agent: *
Disallow:

Sitemap: {Your sitemap URL}

Wait for Google to re-download the robots.txt file (usually every 24 hours), and see if that sorts the problem.
Emma
 
Posts: 398
Joined: Tue Dec 21, 2010 12:44 pm


Return to Sitemaps

Who is online

Users browsing this forum: No registered users and 1 guest