Akbarali
TimX, # TimX (30.05.2020 / 21:53)
www.site.uz ni http://site.uz ga redirect qilish kodi shunday yoziladimi?

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(.www)\.sayt\.uz$ [NC]
RewriteRule ^ http://sayt.uz [L,R]
Мен ишлатаётганим
Kod · PHP9 qator
HTTPS 

     RewriteEngine On

     RewriteCond %{HTTPS} off

     RewriteCond %{HTTP:X-Forwarded-Proto} !https

     RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]