2

I want to disallow a specific folder and all of its files and subdirectories but I don't know the difference between Disallow: /somedir/ and Disallow: /somedir/*. which one of these lines should I use?

By the way, what does Disallow: /somedir? mean? should I use it too?

1 Answer 1

1

Disallow: /somedir/ and Disallow: /somedir/* Both are same, here is what google dev said about it.

/* is Equivalent to /. The trailing wildcard is ignored.

And Disallow: /somedir? will block only directory like /somedir?id=1, and /somedir?id=2.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.