Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用 apache2 和/或 php 返回状态代码 426 Upgrade Required。
我怎样才能做到这一点?
我只发现 mod_rewrite 可以使用 http 状态代码设置重定向。
mod rewrite 完成了这项工作......
<VirtualHost *:80> ServerName mydomain.com RewriteEngine on RewriteRule .* - [R=426,L] </VirtualHost>