Bollar johncmsda htaccess da http dan https ga utkazish kerak men topgan kodlar ishlamayapti kimdur yordam bersa saytiga bepul sertifikat olib beraman
Kod · PHP
# HTTPS
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]8 daqiqa 26 soniyadan keyin yozdi:
Yoki
Kod · PHP
# To redirect all users to access the site without the www. prefix
# RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
# RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301]