How to disable HTTP 1.0 protocol in Apache?
- Ensure to load mod_rewrite module in httpd.conf file
Enable RewriteEngine directive as following and add Rewrite condition to allow only HTTP 1.1
RewriteEngine On RewriteCond %{THE_REQUEST} !HTTP/1.1$ RewriteRule .* - [F]
You may try this mod_rewrite, this worked for me. Here the server would try to respond with a 403-Forbidden response code.
RewriteCond %{THE_REQUEST} HTTP/1\.0$
RewriteCond %{REQUEST_URI} !^/path-to-your-custom-403-error-page\.html$
RewriteRule .? - [F]