Bo'limlar Har-xil Tog'ri taxrirlash http:// da

Tog'ri taxrirlash http:// da

Tog'ri taxrirlash http:// da
  1. RewriteEngine On
  2. RewriteCond %{HTTPS} !=on
  3. RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R=301,L]
  4. RewriteCond %{HTTP_HOST} ^www.(. ) [NC]
  5. RewriteRule ^(.*) https://%1/$1 [R=301,NE,L]