Akbarali
6750, # 6750 (26.12.2019 / 08:35)
Bollar johncmsda htaccess da http dan https ga utkazish kerak men topgan kodlar ishlamayapti kimdur yordam bersa saytiga bepul sertifikat olib beraman
  1. # HTTPS
  2. RewriteEngine On
  3. RewriteCond %{HTTPS} off
  4. RewriteCond %{HTTP:X-Forwarded-Proto} !https
  5. RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

8 daqiqa 26 soniyadan keyin yozdi:
Yoki
  1. # To redirect all users to access the site without the www. prefix
  2. # RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
  3. # RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301]