Skip to main content

New answers tagged

0 votes

Forcing HTTP error 421 on all HTTP2 requests

Google does state that to opt-out from crawling over HTTP/2, you can instruct the server to respond with a 421 HTTP status code. You can achieve it by using this in Apache: <If "%{HTTP2} == '...
Luis Alberto Barandiaran's user avatar
1 vote

setting custom HTTP header based on HTTP error code (Apache 2.4)

From my understanding, you want to add a particular header depending on the request status of the client. While you can't do that directly as an IF statement (per documentation), here's a workaround ...
Luis Alberto Barandiaran's user avatar

Top 50 recent answers are included