Ignore urls in robot.txt with specific parameters?

前端 未结 3 1206
误落风尘
误落风尘 2020-12-02 16:41

I would like for google to ignore urls like this:

http://www.mydomain.com/new-printers?dir=asc&order=price&p=3

All urls that have the parameters dir,

3条回答
  •  时光说笑
    2020-12-02 16:59

    Register your website with Google WebMaster Tools. There you can tell Google how to deal with your parameters.

    Site Configuration -> URL Parameters

    You should have the pages that contain those parameters indicate that they should be excluded from indexing via the robots meta tag. e.g.

提交回复
热议问题