【发布时间】:2012-04-08 00:33:17
【问题描述】:
我想使用 apache2 和/或 php 返回状态码 426 Upgrade Required。
我该怎么做?
我只发现 mod_rewrite 可以设置带有 http 状态码的重定向。
【问题讨论】:
标签: apache http apache2 http-status-code-404
我想使用 apache2 和/或 php 返回状态码 426 Upgrade Required。
我该怎么做?
我只发现 mod_rewrite 可以设置带有 http 状态码的重定向。
【问题讨论】:
标签: apache http apache2 http-status-code-404
mod rewrite 完成这项工作...
<VirtualHost *:80>
ServerName mydomain.com
RewriteEngine on
RewriteRule .* - [R=426,L]
</VirtualHost>
【讨论】: