I'm having difficulty with NGINX config file for magento.

I want to add add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive"; to URLS which contain the string "testing" so that CMS pages created for testing purposes aren't indexed

I've tried a few different options, but none seem to be working.

Can anyone help me with this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.