1

I have URLs with and without query strings, like:

  http://example.com/product

and

  http://example.com/product?color

I want that if any of my URLs has a query string (?anything), it gets with help of htaccess

  Header set X-Robots-Tag "noindex, follow"

and

  Header add Link 'My URL without query string; rel="canonical"'

Thank you!

Evgeniy
  • 2,337
  • 2
  • 28
  • 68

0 Answers0