problems with robots.txt

loginname

Regular Member
Joined
Oct 1, 2008
Messages
406
Reaction score
14
Hey

I uploaded a robots.txt file which contain these settings:
User-agent: *
Disallow: /css/

Google Webmaster Tools translate that into:
?User-agent: *
Disallow: /css/

PROBLEMS (as reported from Google Webmaster Tools):
?User-agent: * - unknows syntax
Disallow: /css/ - no user agent specified

is there somehting wrong with my syntax? I thought the syntax is okay, but I don't know?
 
I know this isn't an answer to the question, but is a solution. Why are you disallowing your css?

If it's to prevent users from browsing the css folder, then why don't you just:
Options All -Indexes

I see nothing wrong with the two lines you've presented. They should work.

However, the symptom you mention (where the ? is inserted at the beginning) generally relates to ansi formatted text being presented on a utf-8 server. I've seen a few posts of this issue but not the solution. Note: I only create robots.txt with UltraEdit and haven't experienced any such issue.
 
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /

So yes it's utf-8 charset, I've uploaded a new robots.txt file with utf-8 formatting

But in Google Webmaster Tools it still report the old errors, it also report that it's 5 hours since the robots.txt was downloaded, but it's only 5 minutes since I uploaded the new robots.txt... I don't see any button/link in webmaster tools which says "reload robots.txt".. So I don't know, I hope google will go about indexing my site and using my new robots.txt file
 
G will reread robots.txt every time it crawls your site. Make sure that your robots.txt is a plain text file, not in utf-8 format. Your bot syntax is correct.
 
if not in utf-8 format, which format should I then choose? I think I've tryed ANSI and that didn't help either
 
If you are using Windows, use notepad.
 
@origin: exactly answer! delete your current robots.txt and make it again with notepad, some editors add UTF BOM header in your file that's why google translate it to ?user-agent:...
 
I suppose I have to create the file from scratch, copy & paste will not do. I tryed to copy&paste into notepad but that didn't help (maybe then the text format is transferred also)....

But the way about 4 hours ago I deleted the robots.txt file from the site, but still Google Webmaster Tools complain about the ?user-agent syntax :(

cheers
 
Back
Top