1

I have been trying to get an answer on this question on various Google forums but no-one answers so I'll try here at SO.

I had an old site that used different URL parameters like
domain.com/index.php?showimage=166
domain.com/index.php?x=googlemap&showimage=139

How can I block access to these pages for these parameters? Of course without my domain.com/index.php page being blocked?

Can this be done in robots.txt

EDIT I found a post here: Ignore urls in robot.txt with specific parameters?

Community
  • 1
  • 1
FFish
  • 10,964
  • 34
  • 95
  • 136

1 Answers1

0
Allow: *
Disallow: /index.php?showImage=*
Disallow: /index.php?x=*
tim
  • 2,530
  • 3
  • 26
  • 45