| 
 
 
 | 
| Keep Server Online 
 If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
 
 or
 
 
   
 A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
 
 Thank You! Steffen
 
 Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
 |  | 
 | 
| | 
| | 
|  Topic: disabling http 1.0 |  |  
| Author |  |  
| mrdj1024 
 
 
 Joined: 03 Apr 2023
 Posts: 75
 Location: Bridgeton,NJ,USA
 
 | 
|  Posted: Mon 21 Oct '24 8:35    Post subject: disabling http 1.0 |   |  
| 
 |  
| hello! i only want my website(.htaccess) to only allow http 1.1 and 2.0,here is whats in my htaccess file 
  	  | Code: |  	  | RewriteEngine on RewriteCond %{THE_REQUEST} !HTTP/1.1$
 RewriteCond %{HTTPS} off
 RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 RewriteCond %{HTTP_HOST} !^www\. [NC]
 RewriteRule (.*) https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 Require all granted
 Options +Indexes +Includes +FollowSymLinks -MultiViews +ExecCGI
 RewriteCond %{THE_REQUEST} !^(POST|GET|HEAD)
 RewriteRule .* - [F]
 EnableSendfile On
 | 
 and in my ssl conf file i have
  	  | Code: |  	  | Protocols h2 h2c http/1.1 | 
 how can i properly disable http 1.0?
 |  |  
| Back to top |  |  
| James Blond Moderator
 
  
 Joined: 19 Jan 2006
 Posts: 7442
 Location: EU, Germany, Next to Hamburg
 
 | 
|  Posted: Mon 21 Oct '24 12:03    Post subject: |   |  
| 
 |  
| You can not disable it. You can only disallow connections via that version. 
 
  	  | Code: |  	  | RewriteEngine On
 RewriteCond %{THE_REQUEST} !HTTP/1.1$
 RewriteRule .* - [F]
 
 | 
 |  |  
| Back to top |  |  
 
 | 
 |  | 
 |  |