robots.txt

W

windandwaves

Hi Folk

I am trying to reduce the number of pages that are indexed on my site.

If I were to put

User-agent: *
Disallow: /*/*.php
Disallow: /*/*.html

in the robots.txt file then would that mean that any files that are not in
the root www directory will be ignored by robots?

Thanks in advance (AKA TIA)

- Nicolaas
 
T

Toby Inkster

windandwaves said:
If I were to put

User-agent: *
Disallow: /*/*.php
Disallow: /*/*.html

in the robots.txt file then would that mean that any files that are not in
the root www directory will be ignored by robots?

No. Most robots do not support globbing, except for the special case
of "User-agent: *"
 
W

windandwaves

Toby Inkster wrote:
....
No. Most robots do not support globbing, except for the special case
of "User-agent: *"

Would it work for Google? They do support globbing, but I am not sure if
the syntax is correct.

Cheers

Nicolaas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top