【发布时间】:2013-04-05 10:36:51
【问题描述】:
将此添加到旧系统并尝试在 .htaccess 文件中执行此操作。
# Prevent search engine indexing on dev sites:
SetEnvIf Host myliveserver\.com$ isproduction
Header set X-Robots-Tag "noindex, nofollow, noarchive" env!=isproduction
使用 mod_setenvif 在 Apache 2.2.22 上运行
获得可怕的 500。
如果我删除条件 env!=isproduction 它运行。
我错过了条件子句的什么?
【问题讨论】:
标签: apache .htaccess http-headers conditional setenv