Welcome to WebmasterWorld Guest from 54.226.130.194

Forum Moderators: goodroi

Message Too Old, No Replies

Not sure how to handle space character

     

Jon_King

2:44 pm on Dec 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If disallowing a subdir with a space in the name which is correct:

Disallow:/new directory/

or

Disallow:/new%20directory/

jatar_k

2:55 pm on Dec 22, 2004 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



spaces aren't really valid in directory names or urls so I am not sure there is a valid format for robots.txt

I looked around at a bunch of tutorials and saw no references

Jon_King

3:12 pm on Dec 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, I wouldn't have used the space, but it's something tough to get changed in this particular organization.

I couldn't find a reference to it either.

encyclo

3:27 pm on Dec 22, 2004 (gmt 0)

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I would disallow both versions to cover both bases, but I would but the version with the space last in the robots.txt file in case it causes a parse error for some bots.

The trouble is, with no certainty of exactly how this situation is supposed to be handled, you can expect problems. Is it possible to add a robots meta tag to those pages also?

Jon_King

1:48 am on Jan 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A follow up. It seems the %20 does indeed hang/confuse some bots. Repeated requests for the robots.txt, and the pages in the disallowed directory are indexed.