x-robots-tag

X-Robots noindex specific page in .htaccess

这一生的挚爱 提交于 2019-12-10 04:35:26
问题 Can I 'noindex, follow' a specific page using x robots in .htaccess? I've found some instructions for noindexing types of files, but I can't find instruction to noindex a single page, and what I have tried so far hasn't worked. This is the page I'm looking to noindex: http://www.examplesite.com.au/index.php?route=news/headlines This is what I have tried so far: <FilesMatch "/index.php?route=news/headlines$"> Header set X-Robots-Tag "noindex, follow" </FilesMatch> Thanks for your time. 回答1: It

X-Robots noindex specific page in .htaccess

◇◆丶佛笑我妖孽 提交于 2019-12-05 09:05:28
Can I 'noindex, follow' a specific page using x robots in .htaccess? I've found some instructions for noindexing types of files, but I can't find instruction to noindex a single page, and what I have tried so far hasn't worked. This is the page I'm looking to noindex: http://www.examplesite.com.au/index.php?route=news/headlines This is what I have tried so far: <FilesMatch "/index.php?route=news/headlines$"> Header set X-Robots-Tag "noindex, follow" </FilesMatch> Thanks for your time. It seems to be impossible to match the request parameters from within a .htaccess file. Here is a list of what